dockerfiles
This commit is contained in:
17
dockerfiles/base/Dockerfile
Normal file
17
dockerfiles/base/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM docker:dind
|
||||
|
||||
RUN apk add --update python3 && ln -sf python3 /usr/bin/python
|
||||
RUN python3 -m ensurepip
|
||||
RUN apk update && apk add postgresql-dev gcc python3-dev musl-dev jpeg-dev zlib-dev libjpeg
|
||||
RUN pip3 install --upgrade pip wheel setuptools
|
||||
RUN addgroup -S docker
|
||||
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ENV DJANGO_SETTINGS_MODULE Sprint.settings
|
||||
RUN mkdir -p /usr/src/app/
|
||||
|
||||
COPY ../../requirements.txt /usr/src/app/requirements.txt
|
||||
|
||||
WORKDIR /usr/src/app/
|
||||
|
||||
RUN pip3 install -r requirements.txt
|
Reference in New Issue
Block a user