docker/Dockerfile

12 lines
214 B
Docker
Raw Normal View History

2024-08-08 18:22:22 +08:00
FROM node:18-alpine
2024-08-08 13:29:13 +08:00
WORKDIR /app
2024-08-09 14:42:08 +08:00
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk add --no-cache python3 make g++ \
2024-08-09 10:51:34 +08:00
&& npm install
2024-08-08 13:29:13 +08:00
COPY . .
2024-08-09 10:51:34 +08:00
CMD ["npm", "start"]