From 103d362b6a76f1bc05b038e7e0b68eb5cd37dc26 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Fri, 13 Sep 2019 23:25:19 -0400 Subject: failed experiment with running the demo application entirely inside of a docker container --- Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') 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' ] -- cgit v1.2.3