peterspackman commited on
Commit
ba18c47
·
1 Parent(s): 5305da7

Modify user for prebuild step

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -1,4 +1,6 @@
1
  FROM python:3.12-slim as builder
 
 
2
  ENV UV_SYSTEM_PYTHON=1
3
  COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv
4
  COPY ./deployment/requirements.txt requirements.txt
@@ -19,6 +21,5 @@ COPY --chown=user ./marimo /app
19
  RUN chown -R user:user /app
20
  USER user
21
 
22
- ENV PYCEK_WORKDIR="/data"
23
  WORKDIR /app
24
  CMD ["python", "app.py"]
 
1
  FROM python:3.12-slim as builder
2
+ RUN useradd -m -u 1000 user
3
+ USER user
4
  ENV UV_SYSTEM_PYTHON=1
5
  COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv
6
  COPY ./deployment/requirements.txt requirements.txt
 
21
  RUN chown -R user:user /app
22
  USER user
23
 
 
24
  WORKDIR /app
25
  CMD ["python", "app.py"]