fix: docker config
This commit is contained in:
parent
8a26f13bf5
commit
6440077b98
2 changed files with 4 additions and 3 deletions
|
@ -11,12 +11,13 @@ COPY package*.json ./
|
||||||
RUN npm install \
|
RUN npm install \
|
||||||
&& apk del bash git openssh
|
&& apk del bash git openssh
|
||||||
|
|
||||||
COPY src tsconfig.json ./
|
COPY tsconfig.json ./
|
||||||
|
COPY src ./src
|
||||||
|
|
||||||
RUN npm run build \
|
RUN npm run build \
|
||||||
&& npm prune --production
|
&& npm prune --production
|
||||||
|
|
||||||
COPY static ./
|
COPY static ./static/
|
||||||
|
|
||||||
EXPOSE 30000
|
EXPOSE 30000
|
||||||
|
|
||||||
|
|
2
makefile
2
makefile
|
@ -5,7 +5,7 @@ watch:
|
||||||
$(PAR) hr ts-w
|
$(PAR) hr ts-w
|
||||||
|
|
||||||
docker-run:
|
docker-run:
|
||||||
docker run --restart always -p 30000:30000 pleshevski
|
docker run -d --restart always -p 30000:30000 pleshevski
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
docker build -t pleshevski .
|
docker build -t pleshevski .
|
||||||
|
|
Loading…
Reference in a new issue