From 266c286f47f2ee5389cd8b7832d498cca400637d Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Mon, 17 Jun 2019 19:50:39 +0200 Subject: [PATCH] new docker images --- Dockerfile | 17 ++++------------- docker-compose.yml | 3 +-- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3c62665..c3303d7 100644 --- a/Dockerfile +++ b/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"] \ No newline at end of file +COPY src . +CMD ["python", "-u", "/app/Mercatus.py"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 561e8d0..8062457 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,6 +6,5 @@ services: restart: unless-stopped command: ["python", "-u", "/app/Mercatus.py"] volumes: - - ./src:/app/ - ./data:/app/data - - ./config.yml:/app/config.yml + - ./config.yml:/app/config.yml:ro