Skip to content
Snippets Groups Projects
Commit 2c297409 authored by ale's avatar ale
Browse files

Run everything in a virtualenv

parent a18f2cf9
No related branches found
No related tags found
No related merge requests found
Pipeline #66855 passed
...@@ -3,7 +3,6 @@ ADD . /src ...@@ -3,7 +3,6 @@ ADD . /src
WORKDIR /src WORKDIR /src
RUN apt-get -q update && \ RUN apt-get -q update && \
env DEBIAN_FRONTEND=noninteractive apt-get -qy install --no-install-recommends \ env DEBIAN_FRONTEND=noninteractive apt-get -qy install --no-install-recommends \
python3-flask python3-sqlalchemy python3-flask-sqlalchemy python3-cheroot \
python3-setuptools python3-pip && \ python3-setuptools python3-pip && \
apt-get clean && \ apt-get clean && \
rm -fr /var/lib/apt/lists/* && \ rm -fr /var/lib/apt/lists/* && \
...@@ -12,12 +11,11 @@ RUN apt-get -q update && \ ...@@ -12,12 +11,11 @@ RUN apt-get -q update && \
FROM registry.git.autistici.org/ai3/docker/s6-overlay-lite:master FROM registry.git.autistici.org/ai3/docker/s6-overlay-lite:master
COPY --from=build /src/dist/*.whl /tmp/wheels/ COPY --from=build /src/dist/*.whl /tmp/wheels/
COPY conf/ /etc/ COPY conf/ /etc/
COPY feedbackloop.sh /usr/local/bin/feedbackloop
RUN apt-get -q update && \ RUN apt-get -q update && \
env DEBIAN_FRONTEND=noninteractive apt-get -qy install --no-install-recommends \ env DEBIAN_FRONTEND=noninteractive apt-get -qy install --no-install-recommends \
python3-flask python3-sqlalchemy python3-flask-sqlalchemy python3-cheroot \
python3-setuptools python3-pip python3-virtualenv && \ python3-setuptools python3-pip python3-virtualenv && \
apt-get clean && \ apt-get clean && \
rm -fr /var/lib/apt/lists/* && \ rm -fr /var/lib/apt/lists/* && \
virtualenv /virtualenv && \ virtualenv /virtualenv && \
cd /tmp/wheels && /virtualenv/bin/pip3 install *.whl && rm -fr /tmp/wheels cd /tmp/wheels && /virtualenv/bin/pip3 install *.whl && rm -fr /tmp/wheels
COPY feedbackloop.sh /virtualenv/bin/feedbackloop
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
export FLASK_APP=feedbackloop.main:create_app export FLASK_APP=feedbackloop.main:create_app
exec flask "$@" exec /virtualenv/bin/flask "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment