Skip to content
Snippets Groups Projects
Commit 94af7562 authored by Henrik's avatar Henrik
Browse files

fix: docker cmd

parent 0707517f
No related branches found
No related tags found
1 merge request!91Feat/deployment
Pipeline #283662 passed with warnings
...@@ -10,5 +10,6 @@ RUN npm run build ...@@ -10,5 +10,6 @@ RUN npm run build
FROM nginx:stable-alpine as production-stage FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY web/nginx.conf /etc/nginx/nginx.conf COPY web/nginx.conf /etc/nginx/nginx.conf
EXPOSE 80 RUN npm run build
CMD ["npm", "run"]
\ No newline at end of file CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
server { events {
listen 80;
server_name localhost;
location / { }
root /usr/share/nginx/html; http {
try_files $uri $uri/ /index.html; server {
listen 5173;
server_name localhost;
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment