Working Dockerfile.

This commit is contained in:
sfigato 2019-08-08 16:05:41 +02:00 committed by blallo
parent 892806d8dc
commit 548b4e9b81
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
2 changed files with 18 additions and 0 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
/dist/*
/bot.z_web/node_modules/*

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM node AS node
FROM python:3.7
COPY --from=node /usr/local /usr/local
COPY --from=node /opt /opt
COPY . /app
WORKDIR /app/bot.z_web
RUN yarn install && yarn build && mkdir -p /app/api/assets && cp -r build/* /app/api/assets/
WORKDIR /app
RUN python setup.py develop
EXPOSE 3003
VOLUME ["/app/bot.z_web/node_modules"]
ENTRYPOINT ["z_app"]