File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/client/GalleryPixels.UI Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ RUN dotnet publish "/src/client/GalleryPixels.UI/GalleryPixels.UI.csproj" \
2626# Serve wwwroot with nginx
2727FROM nginx:alpine AS final
2828
29- WORKDIR /usr/share/nginx/html
29+ WORKDIR /app
3030COPY --from=base /app/publish/wwwroot .
3131
3232# Create and copy Nginx config
3333RUN 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
4949EXPOSE 80
5050ENTRYPOINT ["nginx" , "-g" , "daemon off;" ]
You can’t perform that action at this time.
0 commit comments