diff --git a/frontend/Dockerfile b/Dockerfile similarity index 71% rename from frontend/Dockerfile rename to Dockerfile index 835a295..81722d9 100644 --- a/frontend/Dockerfile +++ b/Dockerfile @@ -7,20 +7,20 @@ RUN npm config set "//npm.fontawesome.com/:_authToken" 58624E90-2685-43C6-BF0F-0 RUN npm install -g http-server WORKDIR /app -COPY package*.json ./ +COPY frontend/package*.json ./ RUN npm install -COPY *.js ./ -COPY *.html ./ -COPY src ./src -COPY public ./public +COPY frontend/*.js ./ +COPY frontend/*.html ./ +COPY frontend/src ./src +COPY frontend/public ./public RUN npm run build # production stage FROM nginx:1.25.2 as production-stage COPY --from=build-stage /app/dist /usr/share/nginx/html -COPY nginx_docker.conf /etc/nginx/conf.d/default.conf +COPY frontend/nginx_docker.conf /etc/nginx/conf.d/default.conf EXPOSE 8080 CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file