mirror of
https://github.com/wahyd4/links.git
synced 2026-08-08 21:04:53 +10:00
fix permission 2
This commit is contained in:
+1
-12
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user