From 21e76e38da3cab33da7a64a476a6a3c307f59a80 Mon Sep 17 00:00:00 2001 From: nsheff Date: Thu, 5 Nov 2020 16:21:04 -0500 Subject: [PATCH] update dockerfile, see #35 --- dev.Dockerfile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/dev.Dockerfile b/dev.Dockerfile index 0966f07f..6e1b3ce6 100644 --- a/dev.Dockerfile +++ b/dev.Dockerfile @@ -1,10 +1,17 @@ -FROM tiangolo/uvicorn-gunicorn:python3.8-alpine3.10 +FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8-slim LABEL authors="Michal Stolarczyk" COPY . /app -RUN apk add --no-cache --virtual .build-deps build-base alpine-sdk postgresql-dev gcc python3-dev musl-dev bash git openssh +# For alpine: +#RUN apk add --no-cache --virtual .build-deps build-base alpine-sdk postgresql-dev gcc python3-dev musl-dev bash git openssh + +# For slim: +RUN apt-get update +RUN apt-get install -y git +RUN apt-get install -y libpq-dev +RUN apt-get install -y gcc RUN pip install -r requirements/requirements-dev.txt RUN pip install -r requirements/requirements-all.txt RUN git clone https://github.com/vishnubob/wait-for-it.git -RUN pip install . \ No newline at end of file +RUN pip install .