first commit
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM node:25-alpine
|
||||
|
||||
RUN apk update && \
|
||||
apk add --no-cache chromium && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm config set registry https://repo.huaweicloud.com/repository/npm/ && \
|
||||
npm config set fetch-retries 3 && \
|
||||
npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV CHROME_PATH=/usr/bin/chromium
|
||||
ENV NODE_ENV=production
|
||||
|
||||
CMD ["npm", "run", "dev"]
|
||||
Reference in New Issue
Block a user