aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/Dockerfile')
-rw-r--r--frontend/Dockerfile18
1 files changed, 10 insertions, 8 deletions
diff --git a/frontend/Dockerfile b/frontend/Dockerfile
index 188469f..985388e 100644
--- a/frontend/Dockerfile
+++ b/frontend/Dockerfile
@@ -21,13 +21,15 @@ ENV VITE_FRONTEND_BASE_URL=$VITE_FRONTEND_BASE_URL
RUN npm run build
-CMD ["npm", "run", "preview-host"]
+# CMD ["npm", "run", "preview-host"]
# fuck nginx
-# FROM nginx:1.21.1-alpine
-#
-# COPY --from=build /app/dist /usr/share/nginx/html
-#
-# EXPOSE 80
-#
-# CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file
+FROM nginx:1.21.1-alpine
+
+COPY --from=build /app/dist /usr/share/nginx/html
+
+COPY nginx.conf /etc/nginx/nginx.conf
+
+EXPOSE 80
+
+CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file