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"]