diff --git a/Dockerfile b/Dockerfile index a3c731271d82dce30d69e405b086723d9c50935a..08944c16abb42c9510e2aeb542e3e8ac9c55c0de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,14 @@ # Step 1: Build your Vue application -FROM node:16 as build-stage +FROM node:16.10.0-alpine3.13 as build-stage WORKDIR /app COPY package*.json ./ RUN npm install COPY . . RUN npm run build - # Step 2: Setup the server with Nginx -#FROM nginx:stable-alpine as production-stage -#COPY --from=build-stage /app/dist /usr/share/nginx/html -#COPY web/nginx.conf /etc/nginx/nginx.conf +FROM nginx:stable-alpine as production-stage +COPY --from=build-stage /app/dist /usr/share/nginx/html +COPY web/nginx.conf /etc/nginx/nginx.conf -#CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file