Skip to content

Commit a02be1b

Browse files
committed
Dockerfile: use unprivileged nginx
This allows running this container w/ arbitrary uid support
1 parent 20b5835 commit a02be1b

File tree

3 files changed

+3
-99
lines changed

3 files changed

+3
-99
lines changed

CI/e2e/docker-compose.e2e.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ services:
4747
build:
4848
context: .
4949
ports:
50-
- 4200:80
50+
- 4200:8080
5151
volumes:
5252
- "./CI/e2e/frontend.config.e2e.json:/usr/share/nginx/html/assets/config.json"
5353
depends_on:

Dockerfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ RUN npm ci
88
COPY . /frontend/
99
RUN npx ng build
1010

11-
FROM nginx:1.25-alpine
12-
RUN rm -rf /usr/share/nginx/html/*
11+
FROM nginxinc/nginx-unprivileged
1312
COPY --from=builder /frontend/dist/ /usr/share/nginx/html/
14-
COPY scripts/nginx.conf /etc/nginx/nginx.conf
15-
EXPOSE 80
13+
EXPOSE 8080

scripts/nginx.conf

-94
This file was deleted.

0 commit comments

Comments
 (0)