mirror of
https://github.com/cupcakearmy/mercatus.git
synced 2024-11-01 00:04:11 +01:00
prebuild image
This commit is contained in:
parent
cd9c7f3f5a
commit
44e48562aa
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
# 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"]
|
Loading…
Reference in New Issue
Block a user