diff --git a/Dockerfile b/Dockerfile index 7af52dc..38bbfac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,16 @@ -FROM python:3 +FROM python:3-alpine -WORKDIR telegram-moviebot +LABEL com.telegram-moviebot.version="0.1" + +WORKDIR / COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt +# Create unprivileged user to run the script +RUN addgroup -S telegram && adduser -S telegram -G telegram +USER telegram:telegram + COPY . . -CMD [ "python", "telegram-moviebot/telegram-moviebot.py" ] \ No newline at end of file +CMD [ "python", "/telegram-moviebot/telegram-moviebot.py" ] \ No newline at end of file