fix:优化界面
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -3,7 +3,6 @@ FROM docker.m.daocloud.io/library/node:20-alpine AS build
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json* ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY tsconfig.json ./tsconfig.json
|
||||
@@ -16,14 +15,24 @@ FROM docker.m.daocloud.io/library/node:20-alpine AS runtime
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV NODE_ENV=production \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
RUN apk add --no-cache python3 py3-pip
|
||||
|
||||
COPY --from=build /app/node_modules ./node_modules
|
||||
COPY --from=build /app/dist ./dist
|
||||
COPY --from=build /app/public ./public
|
||||
|
||||
COPY backend/requirements.txt ./backend/requirements.txt
|
||||
RUN pip3 install --no-cache-dir --break-system-packages -r backend/requirements.txt
|
||||
|
||||
COPY backend ./backend
|
||||
COPY .env.example ./
|
||||
COPY start.sh ./
|
||||
|
||||
EXPOSE 3000
|
||||
EXPOSE 3000 8000
|
||||
|
||||
CMD ["node", "dist/server.js"]
|
||||
CMD ["sh", "start.sh"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user