Skip to content

Commit fa70be2

Browse files
committed
Fix: Use app folder instead default nginx folder
1 parent 5c8eaef commit fa70be2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client/GalleryPixels.UI/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ RUN dotnet publish "/src/client/GalleryPixels.UI/GalleryPixels.UI.csproj" \
2626
# Serve wwwroot with nginx
2727
FROM nginx:alpine AS final
2828

29-
WORKDIR /usr/share/nginx/html
29+
WORKDIR /app
3030
COPY --from=base /app/publish/wwwroot .
3131

3232
# Create and copy Nginx config
3333
RUN echo 'server { \
3434
listen 80; \
3535
server_name localhost; \
36-
root /usr/share/nginx/html; \
36+
root /app; \
3737
index index.html; \
3838
location / { \
3939
try_files $uri $uri/ /index.html; \
@@ -44,7 +44,7 @@ RUN echo 'server { \
4444
} \
4545
}' > /etc/nginx/conf.d/default.conf
4646

47-
RUN chmod -R 755 /usr/share/nginx/html
47+
RUN chmod -R 755 /app
4848

4949
EXPOSE 80
5050
ENTRYPOINT ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)