diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-09-13 23:25:19 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-09-13 23:25:19 -0400 |
| commit | 103d362b6a76f1bc05b038e7e0b68eb5cd37dc26 (patch) | |
| tree | ac52f33767edc25c31ea9f7e71296a1e27c7eb1b /Dockerfile | |
| parent | d16ac1fa8e8b7019156ae11267a23d957aed6495 (diff) | |
| download | dispatch-tracker-103d362b6a76f1bc05b038e7e0b68eb5cd37dc26.tar.gz dispatch-tracker-103d362b6a76f1bc05b038e7e0b68eb5cd37dc26.tar.xz | |
failed experiment with running the demo application entirely inside of a docker containerdemo
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..63eaa21 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM alpine:latest + +RUN apk update && apk add python3 py3-setuptools py3-virtualenv +RUN apk add postgresql postgresql-client +RUN apk add linux-headers git postgresql-dev gcc python3-dev libc-dev + +COPY app/requirements.txt /requirements.txt +RUN pip3 install --no-cache-dir -r /requirements.txt +RUN rm /requirements.txt + +RUN pip3 install --no-cache-dir uwsgi + +RUN apk del linux-headers postgresql-dev gcc python3-dev libc-dev + +RUN adduser -h /app -D -H -u 1000 app + +RUN mkdir /app /static +RUN chown -R app /app /static + + +# TODO: add these to the install above +RUN apk add nginx runit + +COPY etc /etc + +CMD [ '/etc/start' ] |
