aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/Dockerfile
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2023-11-09 12:22:41 +0000
committerLeonardo Bishop <me@leonardobishop.com>2023-11-09 12:22:41 +0000
commit8ddecd4d74f9f0575474ed6119238bdff6b8dd57 (patch)
treed3d117854b1f3abfc076da31809d24100652c3e9 /frontend/Dockerfile
parentc87acf1f4b9fbd443ffe722ac0034f6010d66e38 (diff)
Fix nginxdev
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