diff --git a/Dockerfile b/Dockerfile index 1e72550..d54dc9f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,9 @@ FROM node:lts AS build WORKDIR /app -COPY package*.json ./ -RUN npm install COPY . . +RUN npm i RUN npm run build -FROM nginx:alpine AS runtime -COPY ./nginx/nginx.conf /etc/nginx/nginx.conf -COPY --from=build /app/dist /usr/share/nginx/html -EXPOSE 8080 \ No newline at end of file +FROM httpd:2.4 AS runtime +COPY --from=build /app/dist /usr/local/apache2/htdocs/ +EXPOSE 80 \ No newline at end of file