full tour
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -1,7 +1,20 @@
|
||||
FROM node:22-alpine
|
||||
WORKDIR /app
|
||||
|
||||
# Install Playwright system dependencies
|
||||
RUN apk add --no-cache \
|
||||
chromium \
|
||||
font-liberation \
|
||||
liberation-fonts \
|
||||
noto \
|
||||
noto-cjk
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
EXPOSE 5173
|
||||
CMD ["npm", "run", "dev", "--", "--host"]
|
||||
RUN npm run build
|
||||
|
||||
EXPOSE 3000
|
||||
ENV NODE_ENV=production
|
||||
CMD ["node", "-e", "import('./build/index.js')"]
|
||||
Reference in New Issue
Block a user