Skip to content

Commit 62fc767

Browse files
committed
fix: too tired - do it this way for now
1 parent df1fc5d commit 62fc767

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

apps/profilarr/Dockerfile

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,18 @@ ARG BUILDPLATFORM
2929
ARG VERSION
3030
ARG CHANNEL
3131

32-
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
33-
3432
RUN apt-get update && \
35-
apt-get install -y git && \
36-
rm -rf /var/lib/apt/lists/*
33+
apt-get install -y git python3.9 pip \
34+
&& rm -rf /var/lib/apt/lists/*
3735

3836
WORKDIR /app
3937

4038
COPY --from=build /source/dist/backend/app ./app
4139
COPY --from=build /source/dist/static ./app/static
4240
COPY --from=build /source/dist/requirements.txt .
4341

44-
RUN uv python install 3.9
45-
46-
ENV UV_CACHE_DIR="/tmp/uv-cache"
47-
48-
RUN uv venv --python 3.9 && \
49-
. .venv/bin/activate && \
50-
uv pip install --upgrade pip wheel && \
51-
uv pip install --no-cache-dir -r requirements.txt
42+
RUN pip install --upgrade pip wheel \
43+
&& pip install --no-cache-dir -r requirements.txt
5244

5345
RUN chown -R 568:568 /app
5446

@@ -60,4 +52,6 @@ LABEL org.opencontainers.image.version="release"
6052

6153
EXPOSE 6868
6254

55+
USER 568
56+
6357
COPY --chmod=0755 apps/profilarr/promknight-entrypoint.sh /promknight-entrypoint.sh

apps/profilarr/promknight-entrypoint.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,4 @@ cat << "EOF"
2121
2222
EOF
2323

24-
exec /app/.venv/bin/gunicorn \
25-
--bind 0.0.0.0:6868 \
26-
--timeout 600 \
27-
"app.main:create_app()"
24+
exec gunicorn --bind 0.0.0.0:6868 --timeout 600 "app.main:create_app()"

0 commit comments

Comments
 (0)