Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce size of web service using nginx stable-alpine #2944

Merged
merged 1 commit into from
Feb 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/nginx.conf.development.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Default: nobody nobody
# https://nginx.org/en/docs/ngx_core_module.html#user
# https://en.wikipedia.org/wiki/Principle_of_least_privilege
user www-data;
user nginx;

# Let nginx pick how many worker processes to run (based on CPU cores)
worker_processes auto;
Expand Down
2 changes: 1 addition & 1 deletion config/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Default: nobody nobody
# https://nginx.org/en/docs/ngx_core_module.html#user
# https://en.wikipedia.org/wiki/Principle_of_least_privilege
user www-data;
user nginx;

# Let nginx pick how many worker processes to run (based on CPU cores)
worker_processes auto;
Expand Down
2 changes: 1 addition & 1 deletion src/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ RUN npm install --no-package-lock

RUN npm run build

FROM nginx:stable as build
FROM nginx:stable-alpine as build

COPY --from=dependencies /frontend/out /var/www/data