Skip to content

Commit

Permalink
Add devel version of Dockerfile to ease development
Browse files Browse the repository at this point in the history
  • Loading branch information
asmorodskyi committed Aug 2, 2022
1 parent a2eb060 commit 2d7639e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Dockerfile_dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM registry.suse.com/bci/python:3.10

ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 UWSGI_WSGI_FILE=/pcw/webui/wsgi.py UWSGI_MASTER=1
ENV UWSGI_HTTP_AUTO_CHUNKED=1 UWSGI_HTTP_KEEPALIVE=1 UWSGI_LAZY_APPS=1 UWSGI_WSGI_ENV_BEHAVIOR=holy

## System preparation steps ################################################# ##

# We do the whole installation and configuration in one layer:
COPY requirements.txt /tmp/
# * Install system requirements
# * Install pip requirements
# * Empty system cache to conserve some space
RUN zypper -n in python310-devel python310-pip gcc libffi-devel && pip3.10 install -r /tmp/requirements.txt && rm -rf /var/cache

# Copy program files only
COPY container-startup /pcw/

WORKDIR /pcw

## Finalize ################################################################# ##

VOLUME /pcw/db

EXPOSE 8000/tcp

ENTRYPOINT ["/pcw/container-startup", "$@"]

0 comments on commit 2d7639e

Please sign in to comment.