mirror of
https://github.com/cupcakearmy/mercatus.git
synced 2024-11-01 08:14:10 +01:00
17 lines
470 B
Docker
17 lines
470 B
Docker
# BUILDER
|
|
FROM python:3.7-alpine as builder
|
|
RUN apk add --no-cache alpine-sdk libffi-dev openssl-dev python3-dev freetype-dev
|
|
COPY requirements.txt .
|
|
RUN pip install -r requirements.txt
|
|
|
|
# APP
|
|
FROM python:3.7-alpine
|
|
RUN apk add --no-cache libstdc++ freetype
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /root/.cache /root/.cache
|
|
COPY --from=builder requirements.txt .
|
|
RUN pip install -r requirements.txt && rm -rf /root/.cache
|
|
|
|
#COPY src .
|
|
#CMD ["python", "-u", "/app/Mercatus.py"] |