File size: 324 Bytes
59027a2
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM node:20-slim AS build
WORKDIR /app
COPY app/package*.json ./
RUN npm install
COPY app/ .
RUN npm run build
FROM nginx:alpine
RUN mkdir -p /var/cache/nginx /tmp && chmod -R 777 /var/cache/nginx /tmp
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/dist /app/dist
EXPOSE 7860
CMD ["nginx","-g","daemon off;"]