Spaces:
Sleeping
Sleeping
nam pham
commited on
Commit
·
03a51ed
1
Parent(s):
274ad8e
feat: fix dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -16,15 +16,15 @@ RUN poetry install --no-root && rm -rf $POETRY_CACHE_DIR
|
|
16 |
|
17 |
FROM python:$PYTHON_VERSION-slim as runtime
|
18 |
|
|
|
|
|
|
|
19 |
####### Add your own installation commands here #######
|
20 |
# Create necessary directories with proper permissions
|
21 |
RUN mkdir -p /app/cache && chmod 777 /app/cache && \
|
22 |
mkdir -p /app/output && chmod 777 /app/output && \
|
23 |
chown -R user:user /app/output /app/cache
|
24 |
|
25 |
-
# Create user first
|
26 |
-
RUN useradd -m -u 1000 user
|
27 |
-
|
28 |
# Copy virtual environment and set permissions
|
29 |
COPY --from=builder /app/.venv /app/.venv
|
30 |
RUN chown -R user:user /app/.venv
|
|
|
16 |
|
17 |
FROM python:$PYTHON_VERSION-slim as runtime
|
18 |
|
19 |
+
# Create user first
|
20 |
+
RUN useradd -m -u 1000 user
|
21 |
+
|
22 |
####### Add your own installation commands here #######
|
23 |
# Create necessary directories with proper permissions
|
24 |
RUN mkdir -p /app/cache && chmod 777 /app/cache && \
|
25 |
mkdir -p /app/output && chmod 777 /app/output && \
|
26 |
chown -R user:user /app/output /app/cache
|
27 |
|
|
|
|
|
|
|
28 |
# Copy virtual environment and set permissions
|
29 |
COPY --from=builder /app/.venv /app/.venv
|
30 |
RUN chown -R user:user /app/.venv
|