diff --git a/.dockerignore b/.dockerignore index 73c5bf8..238888b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,11 +1,6 @@ /* -# makefile -!/makefile - -# config -!/.eslintrc.yml !/tsconfig.json # node modules diff --git a/Dockerfile b/Dockerfile index cbd141b..d8dc499 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,14 +8,15 @@ RUN apk update \ COPY package*.json ./ -RUN npm install +RUN npm install \ + && apk del bash git openssh - -COPY . . +COPY src tsconfig.json ./ RUN npm run build \ - && npm prune --production \ - && apk del bash git openssh + && npm prune --production + +COPY static ./ EXPOSE 30000