From 6440077b98883f518aeb0c4f253204bcabce7c69 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Tue, 22 Mar 2022 19:47:47 +0300 Subject: [PATCH] fix: docker config --- Dockerfile | 5 +++-- makefile | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d8dc499..ca03832 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/makefile b/makefile index 92d4a73..6746150 100644 --- a/makefile +++ b/makefile @@ -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 .