Switch nginx to one that doesn't need root
This commit is contained in:
parent
f56758e1c4
commit
2d66097584
1 changed files with 3 additions and 1 deletions
|
|
@ -13,6 +13,8 @@ COPY config.* /app/
|
|||
RUN flutter pub get
|
||||
RUN flutter build web --dart-define=FLUTTER_WEB_CANVASKIT_URL=canvaskit/ --release --source-maps
|
||||
|
||||
FROM docker.io/nginx:alpine
|
||||
FROM docker.io/nginxinc/nginx-unprivileged:alpine
|
||||
USER root
|
||||
RUN rm -rf /usr/share/nginx/html
|
||||
COPY --from=builder /app/build/web /usr/share/nginx/html
|
||||
USER $UID
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue