From 7a6dbe32d06c7086cba51b483b17d67f20e40c46 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Tue, 22 Mar 2022 19:39:52 +0300 Subject: [PATCH] fix: docker file config --- .dockerignore | 5 ----- Dockerfile | 11 ++++++----- 2 files changed, 6 insertions(+), 10 deletions(-) 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