proj: switch to secure connection
This commit is contained in:
+7
-3
@@ -7,7 +7,11 @@ COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# Serve stage
|
||||
FROM nginx:alpine
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
FROM node:20-alpine
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY --from=builder /app/package*.json ./
|
||||
RUN npm install --production
|
||||
COPY server.js .
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
CMD ["npm", "start"]
|
||||
|
||||
Reference in New Issue
Block a user