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 !/tsconfig.json
# node modules # node modules

View file

@ -8,14 +8,15 @@ RUN apk update \
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN npm install \
&& apk del bash git openssh
COPY src tsconfig.json ./
COPY . .
RUN npm run build \ RUN npm run build \
&& npm prune --production \ && npm prune --production
&& apk del bash git openssh
COPY static ./
EXPOSE 30000 EXPOSE 30000