Skip to content

Commit 60ad3c5

Browse files
authored
Update Dockerfile
1 parent d3cfa23 commit 60ad3c5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Use the official Python base image
22
FROM python:3.11-bookworm AS base
33

4-
USER onboard-user
5-
64
# Set the working directory in the container
75
WORKDIR /src
86

@@ -48,6 +46,10 @@ FROM base as prod
4846

4947
COPY requirements.txt .
5048

49+
RUN useradd onboard-user
50+
51+
USER onboard-user
52+
5153
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt
5254

5355
COPY ./app ./app

0 commit comments

Comments
 (0)