Skip to content

Commit

Permalink
[DEV-13666] Testing nginx builds
Browse files Browse the repository at this point in the history
  • Loading branch information
vitali-federau-monite committed Jan 15, 2025
1 parent 5efca34 commit 8adcb59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Dockerfile.sdk-demo-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ FROM ${BASE_IMAGE} as base

FROM nginx:1.25.1

# Temporarily switch to root to set up a non-root user
USER root
# # Temporarily switch to root to set up a non-root user
# USER root

# Create a non-root user
RUN ln -snf /usr/share/zoneinfo/Europe/Berlin /etc/localtime && echo "Europe/Berlin" > /etc/timezone
Expand All @@ -20,5 +20,5 @@ COPY --from=base /app/packages/sdk-demo/build /app
# Set permissions
RUN chown -R nginx:nginx /app

# Switching back to default nginx user
USER nginx
# # Switching back to default nginx user
# USER nginx
8 changes: 4 additions & 4 deletions Dockerfile.sdk-drop-in-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ FROM ${BASE_IMAGE} as base

FROM nginx:1.25.1

# Temporarily switch to root to set up a non-root user
USER root
# # Temporarily switch to root to set up a non-root user
# USER root

# Create a non-root user
RUN ln -snf /usr/share/zoneinfo/Europe/Berlin /etc/localtime && echo "Europe/Berlin" > /etc/timezone
Expand All @@ -20,5 +20,5 @@ COPY --from=base /app/packages/sdk-drop-in/dist /app
# Set permissions
RUN chown -R nginx:nginx /app

# Switching back to default nginx user
USER nginx
# # Switching back to default nginx user
# USER nginx

0 comments on commit 8adcb59

Please sign in to comment.