Skip to content

Commit 9516d63

Browse files
committed
ensure to install build thumbor module instead of repo one
1 parent 5728be7 commit 9516d63

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docker/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ RUN apt-get update && \
2424

2525
ADD . /src
2626
WORKDIR /src
27-
RUN python3 setup.py sdist && \
28-
mv dist/ /tmp/thumbor_dist
27+
RUN python3 setup.py sdist
2928

3029
RUN python3 -m venv /home/thumbor/venv
3130
ENV PATH="/home/thumbor/venv/bin:$PATH"
3231

33-
RUN pip3 install --no-cache-dir --find-links=/tmp/thumbor_dist thumbor[all]==${THUMBOR_VERSION}
32+
RUN pip3 install --no-cache-dir /src/dist/thumbor-${THUMBOR_VERSION}.tar.gz pycurl
3433

3534
FROM python:${PYTHON_VERSION}-slim-bullseye AS runner-image
3635

@@ -54,4 +53,4 @@ ENV PYTHONUNBUFFERED=1
5453
ENV VIRTUAL_ENV=/home/thumbor/venv
5554
ENV PATH="/home/thumbor/venv/bin:$PATH"
5655

57-
ENTRYPOINT ["thumbor"]
56+
ENTRYPOINT ["thumbor", "--use-environment=true"]

0 commit comments

Comments
 (0)