From 729d072a2980259b699e24edff3dcabe31ddc411 Mon Sep 17 00:00:00 2001 From: Roxedus <7110194+si0972@users.noreply.github.com> Date: Sat, 19 Jan 2019 18:02:17 +0000 Subject: [PATCH] TIL minimal means minimal. --- dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dockerfile b/dockerfile index e1df32c..a5ab295 100644 --- a/dockerfile +++ b/dockerfile @@ -4,10 +4,16 @@ LABEL maintainer="Roxedus" COPY / /app -RUN python3 -m pip install -r /app/requirements.txt +RUN \ + apk add --no-cache git && \ + python3 -m pip install -r /app/requirements.txt && \ + chown -R abc:abc \ + /config \ + /app + WORKDIR /app -CMD python3 /app/bot.py +CMD ln -sf /app/data /config && python3 /app/bot.py VOLUME /config \ No newline at end of file