mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 20:14:53 +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 . .
|
COPY . .
|
||||||
RUN yarn build
|
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
|
COPY --from=builder /app/target /usr/share/nginx/html
|
||||||
|
@ -55,6 +55,6 @@ Then, start up a container from that image:
|
|||||||
```
|
```
|
||||||
docker run \
|
docker run \
|
||||||
--name hydrogen \
|
--name hydrogen \
|
||||||
--publish 80:80 \
|
--publish 8080:80 \
|
||||||
hydrogen
|
hydrogen
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user