Update client/Dockerfile
This commit is contained in:
@@ -19,9 +19,10 @@ FROM nginx:1.27-alpine
|
||||
# On nettoie la racine Nginx
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
|
||||
# On copie le build Angular dans un sous-dossier /gameovergne
|
||||
# => important pour que /gameovergne/ fonctionne
|
||||
COPY --from=build /app/dist/client /usr/share/nginx/html/gameovergne
|
||||
# IMPORTANT :
|
||||
# On copie le build Angular directement dans /usr/share/nginx/html
|
||||
# (et NON dans /usr/share/nginx/html/gameovergne)
|
||||
COPY --from=build /app/dist/client/ /usr/share/nginx/html/
|
||||
|
||||
# On remplace la conf par notre conf appli
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
Reference in New Issue
Block a user