diff --git a/Dockerfile b/Dockerfile
index 4cec825e2a65f2da3a1096bc1043078adc9db234..e44e704f877104aeb3e6a38d0541e02e8bd02624 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -10,5 +10,6 @@ RUN npm run build
 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
-EXPOSE 80
-CMD ["npm", "run"]
\ No newline at end of file
+RUN npm run build
+
+CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
diff --git a/web/nginx.conf b/web/nginx.conf
index 60d2005bb62b27aa09760811c140fa26940d21c1..0a69719d7aa74a9ffbf0f3209c198f771ca66766 100644
--- a/web/nginx.conf
+++ b/web/nginx.conf
@@ -1,9 +1,14 @@
-server {
-    listen 80;
-    server_name localhost;
+events {
 
-    location / {
-        root /usr/share/nginx/html;
-        try_files $uri $uri/ /index.html;
+}
+http {
+    server {
+        listen 5173;
+        server_name localhost;
+
+        location / {
+            root /usr/share/nginx/html;
+            try_files $uri $uri/ /index.html;
+        }
     }
 }
\ No newline at end of file