Working Dockerfile.
This commit is contained in:
parent
892806d8dc
commit
548b4e9b81
2
.dockerignore
Normal file
2
.dockerignore
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/dist/*
|
||||||
|
/bot.z_web/node_modules/*
|
16
Dockerfile
Normal file
16
Dockerfile
Normal 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"]
|
Loading…
Reference in New Issue
Block a user