fix permission 2

This commit is contained in:
2024-11-04 20:33:25 +11:00
parent 77ff7f7f1c
commit 54b48a5fe0
+1 -12
View File
@@ -27,14 +27,8 @@ RUN apt-get update && apt-get install -y \
COPY --from=uv /usr/local/bin/uv /usr/local/bin/uv
# Create directories with proper permissions
RUN mkdir -p /app/.cache/uv && \
mkdir -p /app/.venv && \
chmod -R 777 /app/.cache && \
chmod -R 777 /app/.venv
RUN which uv \
&& uv pip install --system --no-cache --no-deps -e .
&& uv sync --no-dev
# Copy project
COPY . .
@@ -63,11 +57,6 @@ COPY --from=dev /app /app
WORKDIR /app
# Ensure proper permissions in the final stage
RUN chmod -R 777 /app/.cache && \
chmod -R 777 /app/.venv && \
chmod -R 777 /app/data
# Create a non-root user
RUN useradd -m -u 1000 appuser && \
chown -R appuser:appuser /app