Skip to content

Commit

Permalink
update dockerfile, see #35
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed Nov 5, 2020
1 parent 33c12dc commit 21e76e3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -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 .
RUN pip install .

0 comments on commit 21e76e3

Please sign in to comment.