修改Dockerfile

This commit is contained in:
陈景阳
2019-10-12 06:28:53 +08:00
parent 5bd30d8046
commit 9d8b0fd137

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