mirror of
https://github.com/AtHeartEngineer/website-v2.git
synced 2026-01-08 20:38:03 -05:00
Modify Dockerfile to meet production deployment + disable workflow auto-deploy
This commit is contained in:
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
@@ -1,7 +1,7 @@
|
||||
name: Deploy
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
#push:
|
||||
# branches: [main]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
build:
|
||||
|
||||
@@ -5,6 +5,7 @@ WORKDIR /builder
|
||||
COPY . .
|
||||
RUN npm i -g pnpm
|
||||
RUN pnpm install
|
||||
RUN pnpm build
|
||||
|
||||
# Create image by copying build artifacts
|
||||
FROM node:18-alpine as runner
|
||||
@@ -17,4 +18,4 @@ WORKDIR /home/node
|
||||
COPY --chown=node:node --from=builder /builder/ ./
|
||||
|
||||
EXPOSE ${PORT}
|
||||
CMD ["pnpm", "dev"]
|
||||
CMD ["pnpm", "start"]
|
||||
|
||||
Reference in New Issue
Block a user