修改Dockerfile

This commit is contained in:
陈景阳
2019-10-12 06:28:53 +08:00
parent cd7f6e66b4
commit 0ab2fcd290

View File

@@ -14,6 +14,7 @@ ADD ./frontend /app
WORKDIR /app
# install frontend
RUN npm config set unsafe-perm true
RUN npm install -g yarn && yarn install
RUN npm run build:prod
@@ -56,4 +57,4 @@ EXPOSE 8080
EXPOSE 8000
# start backend
CMD ["/bin/sh", "/app/docker_init.sh"]
CMD ["/bin/sh", "/app/docker_init.sh"]