mirror of
https://github.com/cupcakearmy/mercatus.git
synced 2024-12-22 08:06:28 +00:00
new docker images
This commit is contained in:
parent
46ca23eb75
commit
266c286f47
17
Dockerfile
17
Dockerfile
@ -1,17 +1,8 @@
|
|||||||
# BUILDER
|
FROM python:3.7-slim
|
||||||
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
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=builder /root/.cache /root/.cache
|
COPY requirements.txt .
|
||||||
COPY --from=builder requirements.txt .
|
|
||||||
RUN pip install -r requirements.txt && rm -rf /root/.cache
|
RUN pip install -r requirements.txt && rm -rf /root/.cache
|
||||||
|
|
||||||
#COPY src .
|
COPY src .
|
||||||
#CMD ["python", "-u", "/app/Mercatus.py"]
|
CMD ["python", "-u", "/app/Mercatus.py"]
|
@ -6,6 +6,5 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: ["python", "-u", "/app/Mercatus.py"]
|
command: ["python", "-u", "/app/Mercatus.py"]
|
||||||
volumes:
|
volumes:
|
||||||
- ./src:/app/
|
|
||||||
- ./data:/app/data
|
- ./data:/app/data
|
||||||
- ./config.yml:/app/config.yml
|
- ./config.yml:/app/config.yml:ro
|
||||||
|
Loading…
Reference in New Issue
Block a user