Docker buid issue
This commit is contained in:
@ -21,15 +21,15 @@ FROM nginx:alpine
|
|||||||
# Copy built files
|
# Copy built files
|
||||||
COPY --from=builder /app/dist/fuse/browser /usr/share/nginx/html
|
COPY --from=builder /app/dist/fuse/browser /usr/share/nginx/html
|
||||||
|
|
||||||
# Simple nginx config for Angular SPA
|
# Create nginx config with proper formatting
|
||||||
RUN echo 'server { \n\
|
RUN printf 'server {\n\
|
||||||
listen 80; \n\
|
listen 80;\n\
|
||||||
root /usr/share/nginx/html; \n\
|
root /usr/share/nginx/html;\n\
|
||||||
index index.html; \n\
|
index index.html;\n\
|
||||||
location / { \n\
|
location / {\n\
|
||||||
try_files $uri $uri/ /index.html; \n\
|
try_files $uri $uri/ /index.html;\n\
|
||||||
} \n\
|
}\n\
|
||||||
}' > /etc/nginx/conf.d/default.conf
|
}\n' > /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user