mirror of
https://github.com/cupcakearmy/mercatus.git
synced 2025-09-06 02:30:44 +00:00
new docker images
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -1,17 +1,8 @@
|
||||
# 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
|
||||
FROM python:3.7-slim
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /root/.cache /root/.cache
|
||||
COPY --from=builder requirements.txt .
|
||||
COPY requirements.txt .
|
||||
RUN pip install -r requirements.txt && rm -rf /root/.cache
|
||||
|
||||
#COPY src .
|
||||
#CMD ["python", "-u", "/app/Mercatus.py"]
|
||||
COPY src .
|
||||
CMD ["python", "-u", "/app/Mercatus.py"]
|
Reference in New Issue
Block a user