Skip to content

Commit

Permalink
changes for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
ironicbadger committed Dec 5, 2023
1 parent b4bac2f commit bf7bdd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ jobs:
platforms: linux/amd64
push: true
tags: |
ghcr.io/ironicbadger/neat-starter:latest
ghcr.io/tailscale-dev/society-of-pangolin-enthusiasts
18 changes: 3 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
# This dockerfile doesn't build the app itself. It expects _site to exist after
# npm run build has been executed to build the site (check .github/workflows for an example)
FROM nginx

# First, copy in the nginx configuration file (above)
# Copy in the nginx configuration file
COPY nginx.conf /etc/nginx/nginx.conf

# Magic commands to grant the required permissions to the nginx user
# RUN chown -R nginx:nginx /usr/share/nginx/html && \
# chmod -R 755 /usr/share/nginx/html && \
# chown -R nginx:nginx /var/cache/nginx && \
# chown -R nginx:nginx /var/log/nginx && \
# chown -R nginx:nginx /etc/nginx/conf.d

# # nginx also needs access to the pid file, which needs to be created first
# RUN touch /var/run/nginx.pid && \
# chown -R nginx:nginx /var/run/nginx.pid

# Run as nginx user
# USER 101

# Copy the static website into the default location
COPY ./_site /usr/share/nginx/html

0 comments on commit bf7bdd6

Please sign in to comment.