Skip to content
Snippets Groups Projects
Verified Commit c575554c authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Fix Docker dev setup

parent f9227c1f
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,8 @@ FROM nginx:alpine
EXPOSE 80
COPY --from=build /src/dist /usr/share/nginx/html
RUN rm /etc/nginx/conf.d/default.conf && mkdir /frontend
COPY docker/front.conf /etc/nginx/conf.d/front.conf
COPY --from=build /src/dist /frontend
CMD nginx -g 'daemon off;'
server {
listen 80;
gzip on;
gunzip on;
gzip_disable "msie6";
gzip_types "*";
# Look for .gz files in the directory
gzip_static on;
location / {
root /frontend;
index index.html;
try_files $uri $uri/ /index.html =404;
}
}
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