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
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
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
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