fix: docker file config

This commit is contained in:
Dmitriy Pleshevskiy 2022-03-22 19:39:52 +03:00
parent 29bd672e0f
commit 7a6dbe32d0
2 changed files with 6 additions and 10 deletions

View File

@ -1,11 +1,6 @@
/*
# makefile
!/makefile
# config
!/.eslintrc.yml
!/tsconfig.json
# node modules

View File

@ -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