需要Docker支持,最好是有Docker-Compose脚本
Sandaman2015 opened this issue · 2 comments
Sandaman2015 commented
懒狗的建议是催动人类进步一大步[🐶]
MrWQ commented
edanhuang commented
前端
FROM node:16.15.0-alpine
WORKDIR /app
COPY dist /app/dist
EXPOSE 3000
RUN yarn global add serve
CMD ["serve", "/app/dist"]
后端
FROM maven:3.8.1-jdk-8-slim as builder
WORKDIR /app
COPY target/sql-boy-backend-0.0.1-SNAPSHOT.jar .
EXPOSE 8102
CMD ["java","-jar","/app/sql-father-backend-0.0.1-SNAPSHOT.jar"]