BotZ/Dockerfile

17 lines
345 B
Docker
Raw Normal View History

2019-08-08 16:05:41 +02:00
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"]