Skip to content

Commit e96da34

Browse files
2 parents 3a6a5cc + 3b580ea commit e96da34

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ ENV PYTHONUNBUFFERED=1
66

77
WORKDIR /data
88

9+
RUN mkdir data cache
10+
911
ARG UID=10001
1012
RUN adduser \
1113
--disabled-password \
@@ -16,6 +18,8 @@ RUN adduser \
1618
--uid "${UID}" \
1719
appuser
1820

21+
RUN chown -R appuser:appuser data cache
22+
1923
RUN --mount=type=cache,target=/root/.cache/pip \
2024
--mount=type=bind,source=requirements.txt,target=requirements.txt \
2125
python -m pip install -r requirements.txt

0 commit comments

Comments
 (0)