File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,13 +13,16 @@ ENV PYTHON_VERSION="3.10.2" \
1313COPY . /app
1414
1515WORKDIR /app
16- RUN buildDeps='musl-dev openssl' ; \
17- install-packages $buildDeps \
16+ RUN buildDeps='musl-dev openssl' \
17+ && install-packages $buildDeps \
1818 && install-stack python $PYTHON_VERSION \
1919 && install-stack helm $HELM_VERSION && . init-stack \
2020 && python3 -m venv /app/.venv \
2121 && source /app/.venv/bin/activate \
2222 && pip3 install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt \
23+ && chown -R drycc:drycc /app \
24+ # set env
25+ && echo "source /app/.venv/bin/activate" >> /opt/drycc/python/profile.d/python.sh \
2326 # cleanup
2427 && scanelp /app/.venv/lib > runtime.txt \
2528 && apt-get purge -y --auto-remove $buildDeps \
@@ -43,5 +46,5 @@ RUN buildDeps='musl-dev openssl'; \
4346
4447USER drycc
4548WORKDIR /app
46- CMD ["PATH=/app/.venv/bin: \$ PATH" , " /app/bin/boot" ]
49+ CMD ["/app/bin/boot" ]
4750EXPOSE 8000
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ RUN buildDeps='musl-dev openssl'; \
2323 && source /app/.venv/bin/activate \
2424 && pip3 install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt \
2525 && pip3 install --disable-pip-version-check --no-cache-dir -r /app/dev_requirements.txt \
26+ && chown -R drycc:drycc /app \
27+ # set env
28+ && echo "source /app/.venv/bin/activate" >> /opt/drycc/python/profile.d/python.sh \
2629 # cleanup
2730 && scanelp /app/.venv/lib > runtime.txt \
2831 && apt-get purge -y --auto-remove $buildDeps \
Original file line number Diff line number Diff line change 55
66# fail hard and fast even on pipelines
77set -eo pipefail
8- # shellcheck disable=SC1091
9- source /app/.venv/bin/activate
108# spawn a gunicorn server in the background
119echo " "
1210echo " Starting up Gunicorn"
Original file line number Diff line number Diff line change 55
66# fail hard and fast even on pipelines
77set -eou pipefail
8- # shellcheck disable=SC1091
9- source /app/.venv/bin/activate
108flake8 --show-source --exclude .venv,migrations
Original file line number Diff line number Diff line change 55
66# fail hard and fast even on pipelines
77set -eou pipefail
8- # shellcheck disable=SC1091
9- source /app/.venv/bin/activate
108
119codecov --required
You can’t perform that action at this time.
0 commit comments