Improve the construction method
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -8,18 +8,15 @@ RUN yarn install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN yarn build
|
||||
RUN yarn generate
|
||||
|
||||
|
||||
FROM node:18-alpine3.16
|
||||
|
||||
ENV NITRO_HOST=0.0.0.0
|
||||
ENV NITRO_PORT=80
|
||||
FROM nginx:alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/.output .
|
||||
COPY --from=builder /app/.output/public .
|
||||
|
||||
EXPOSE 80
|
||||
COPY nginx.conf /etc/nginx/templates/default.conf.template
|
||||
|
||||
ENTRYPOINT ["node", "server/index.mjs"]
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user