Skip to content

Commit f02a028

Browse files
committed
use nginx-unpriviledged
1 parent 08d977b commit f02a028

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ COPY . .
1010
RUN pnpm build
1111

1212
# production stage
13-
FROM nginx:stable-alpine AS production-stage
13+
FROM nginxinc/nginx-unprivileged:stable-alpine AS production-stage
1414
COPY --from=build-stage /app/dist /usr/share/nginx/html
1515
COPY nginx.conf /etc/nginx/conf.d/default.conf
16-
EXPOSE 80
16+
EXPOSE 8080
1717
CMD ["nginx", "-g", "daemon off;"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ Self host solutions for your homelab
2323
**From docker hub:**
2424

2525
```sh
26-
docker run -d --name it-tools --restart unless-stopped -p 8080:80 corentinth/it-tools:latest
26+
docker run -d --name it-tools --restart unless-stopped -p 8080:8080 corentinth/it-tools:latest
2727
```
2828

2929
**From github packages:**
3030

3131
```sh
32-
docker run -d --name it-tools --restart unless-stopped -p 8080:80 ghcr.io/corentinth/it-tools:latest
32+
docker run -d --name it-tools --restart unless-stopped -p 8080:8080 ghcr.io/corentinth/it-tools:latest
3333
```
3434

3535
**Other solutions:**

nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
server {
2-
listen 80;
2+
listen 8080;
33
server_name localhost;
44
root /usr/share/nginx/html;
55
index index.html;
66

77
location / {
88
try_files $uri $uri/ /index.html;
99
}
10-
}
10+
}

0 commit comments

Comments
 (0)