mirror of
https://github.com/skoobasteeve/telegram-moviebot.git
synced 2026-03-21 20:18:56 +00:00
alpine image, add user, set version
This commit is contained in:
12
Dockerfile
12
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 ./
|
COPY requirements.txt ./
|
||||||
RUN pip install --no-cache-dir -r 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 . .
|
COPY . .
|
||||||
|
|
||||||
CMD [ "python", "telegram-moviebot/telegram-moviebot.py" ]
|
CMD [ "python", "/telegram-moviebot/telegram-moviebot.py" ]
|
||||||
Reference in New Issue
Block a user