Skip to content

Commit

Permalink
Slim down web service by using nginx stable-alpine instead of stable
Browse files Browse the repository at this point in the history
  • Loading branch information
TDDR authored and menghif committed Feb 17, 2022
1 parent 8a76ffb commit d1ec8e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit d1ec8e5

Please sign in to comment.