forked from ironicbadger/neat-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4bac2f
commit bf7bdd6
Showing
2 changed files
with
4 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |