diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-03-27 23:06:36 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-03-27 23:06:36 -0400 |
| commit | c49d9e0d69685d022fa6ffaa04f91bbe46f67551 (patch) | |
| tree | 5f100e3f9b70340f2e642de286cda01183b6e5b4 /Dockerfile | |
| parent | 35dddcfc0dc2ded193a6b503f9ff4a5a3cd68439 (diff) | |
| download | dispatch-tracker-c49d9e0d69685d022fa6ffaa04f91bbe46f67551.tar.gz dispatch-tracker-c49d9e0d69685d022fa6ffaa04f91bbe46f67551.tar.xz | |
Fully dockerized environment
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 33 |
1 files changed, 30 insertions, 3 deletions
@@ -6,8 +6,35 @@ RUN apk add postgresql-dev gcc python3-dev libc-dev COPY app/requirements.txt /requirements.txt -RUN pip3 install -r /requirements.txt +RUN pip3 install --no-cache-dir -r /requirements.txt -COPY app/ /app/ +RUN apk add linux-headers -VOLUME ['/var/lib/dispatch'] +RUN pip3 install --no-cache-dir uwsgi + +RUN apk del linux-headers + +RUN apk add postgresql-client + +# Feel free to change the UID if necessary +RUN adduser -D -H -u 1000 uwsgi + +# RUN apk add uwsgi-python3 + +RUN rm /requirements.txt + +RUN mkdir /app && chown uwsgi /app +RUN mkdir /static && chown uwsgi /static + +USER uwsgi + +CMD [ "uwsgi", "--ini", "/app/uwsgi.ini" ] + +# WORKDIR /app + +# CMD [ "uwsgi", "--socket", "0.0.0.0:9200", \ +# "--env", "CUSTOM_CONFIG=/app/config.yml", \ +# "--processes", "1", \ +# "--threads", "4", \ +# "--uid", "uwsgi", \ +# "wsgi:application" ] |
