mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 12:04:57 +01:00
Use non-root nginx base in Docker image
This commit is contained in:
parent
ea5723cb32
commit
43b043c565
@ -10,5 +10,5 @@ RUN yarn install
|
||||
COPY . .
|
||||
RUN yarn build
|
||||
|
||||
FROM --platform=${TARGETPLATFORM} docker.io/library/nginx:alpine
|
||||
FROM --platform=${TARGETPLATFORM} docker.io/nginxinc/nginx-unprivileged:1.21-alpine
|
||||
COPY --from=builder /app/target /usr/share/nginx/html
|
||||
|
@ -55,6 +55,6 @@ Then, start up a container from that image:
|
||||
```
|
||||
docker run \
|
||||
--name hydrogen \
|
||||
--publish 80:80 \
|
||||
--publish 8080:80 \
|
||||
hydrogen
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user