alpine -> slim
This commit is contained in:
parent
c8f5ba4b4b
commit
312b7cfd2c
11
Dockerfile
11
Dockerfile
@ -1,10 +1,11 @@
|
|||||||
FROM python:3.6-alpine
|
FROM python:3.6-slim
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY requirements.txt /src/
|
COPY requirements.txt /src/
|
||||||
RUN apk update && apk add postgresql-dev gcc musl-dev jpeg-dev zlib-dev libwebp-dev && \
|
RUN apt-get update && \
|
||||||
|
apt-get install -y gcc && \
|
||||||
pip install -r requirements.txt && \
|
pip install -r requirements.txt && \
|
||||||
apk del musl-dev gcc && \
|
apt-get remove -y --auto-remove gcc && \
|
||||||
rm -rf /var/cache/apk/*
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
COPY . /src
|
COPY . /src
|
||||||
ENTRYPOINT sh -c "python manage.py makemigrations data && python manage.py migrate data && python telegram.py"
|
ENTRYPOINT bash -c "python manage.py makemigrations data && python manage.py migrate data && python telegram.py"
|
Loading…
x
Reference in New Issue
Block a user