move to rest

This commit is contained in:
Ammar Qaffaf
2024-03-11 06:24:52 -04:00
parent 7bba7941ba
commit e222bef577
4 changed files with 4 additions and 49 deletions

View File

@ -1,9 +1,5 @@
FROM node:20-alpine
RUN apk add --no-cache nginx
COPY nginx.conf /etc/nginx/nginx.conf
WORKDIR /app
COPY package*.json ./
@ -14,6 +10,6 @@ COPY . .
RUN npm run build
EXPOSE 8080
EXPOSE 4000
CMD ["sh", "-c", "nginx -g 'daemon off;' & npm run start:all"]