|
|
|
@ -1,12 +1,23 @@
@@ -1,12 +1,23 @@
|
|
|
|
|
FROM python:3.8-alpine |
|
|
|
|
|
|
|
|
|
# RUN apk add --no-cache something |
|
|
|
|
RUN pip install --upgrade pip |
|
|
|
|
RUN pip install gunicorn |
|
|
|
|
RUN apk add --no-cache gcc |
|
|
|
|
RUN apk add --no-cache python3-dev |
|
|
|
|
RUN apk add --no-cache libc-dev |
|
|
|
|
RUN apk add --no-cache libffi-dev |
|
|
|
|
RUN apk add --no-cache openssl |
|
|
|
|
RUN apk add --no-cache openssl-dev |
|
|
|
|
|
|
|
|
|
RUN adduser -D deploy |
|
|
|
|
USER deploy |
|
|
|
|
ENV PATH "$PATH:/home/deploy/.local/bin" |
|
|
|
|
|
|
|
|
|
COPY . /app |
|
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
|
|
RUN pip install --upgrade pip |
|
|
|
|
RUN pip install gunicorn |
|
|
|
|
RUN pip install wheel |
|
|
|
|
|
|
|
|
|
RUN pip install -r requirements.txt |
|
|
|
|
RUN flit install --pth-file |
|
|
|
|
|
|
|
|
|