File size: 316 Bytes
22f7d39
6dac806
 
22f7d39
a86432d
1c83ef0
 
22f7d39
3bec37b
22f7d39
 
 
813eca2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM node:18-bullseye-slim
RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo $TZ > /etc/timezone

WORKDIR /app
COPY . .
RUN chown -R 1000:1000 /app
USER 1000
RUN npm install
RUN npm run build
EXPOSE 7860
ENV NODE_ENV=production
ENV NODE_OPTIONS="--max-old-space-size=12882"
CMD [ "npm", "start" ]