fix: docker file config
This commit is contained in:
parent
29bd672e0f
commit
7a6dbe32d0
2 changed files with 6 additions and 10 deletions
|
@ -1,11 +1,6 @@
|
|||
|
||||
/*
|
||||
|
||||
# makefile
|
||||
!/makefile
|
||||
|
||||
# config
|
||||
!/.eslintrc.yml
|
||||
!/tsconfig.json
|
||||
|
||||
# node modules
|
||||
|
|
11
Dockerfile
11
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue