Skip to content
Snippets Groups Projects
Commit 85eacf13 authored by Kawtar Laariche's avatar Kawtar Laariche
Browse files

fix dockerfile

parent 1251c41e
No related branches found
No related tags found
1 merge request!15Feautres/design studio
......@@ -23,8 +23,10 @@ RUN npm run ng build --configuration=prod
FROM nginx:alpine
# Copy the built app from the 'build' stage to the current stage
COPY --from=build /usr/src/app/dist/graphene-ui /usr/share/nginx/html
COPY --from=build /usr/src/app/dist/graphene-ui/browser /usr/share/nginx/html
# Copy the custom Nginx configuration file
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Start Nginx
CMD ["nginx", "-g", "daemon off;"]
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
# Angular routing fallback
try_files $uri /index.html;
}
error_page 404 /index.html;
}
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