fix: docker config

This commit is contained in:
Dmitriy Pleshevskiy 2022-03-22 19:47:47 +03:00
parent 8a26f13bf5
commit 6440077b98
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -5,7 +5,7 @@ watch:
$(PAR) hr ts-w
docker-run:
docker run --restart always -p 30000:30000 pleshevski
docker run -d --restart always -p 30000:30000 pleshevski
docker-build:
docker build -t pleshevski .