dockerfile-80
This commit is contained in:
parent
423ce51857
commit
5ad51527a8
1 changed files with 1 additions and 2 deletions
|
|
@ -6,10 +6,9 @@ RUN npm install -g pnpm && pnpm install
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
# Stage 2: Serve
|
|
||||||
# Stage 2: Serve
|
# Stage 2: Serve
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
EXPOSE 3000
|
EXPOSE 80
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
Loading…
Add table
Reference in a new issue