-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (19 loc) · 720 Bytes
/
Dockerfile
File metadata and controls
29 lines (19 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Docker image for E4GL_BF4Status_DiscordBot
# Creator: H3dius/Hedius gitlab.com/hedius
FROM python:3.12
# User and Group ID of the account used for execution
ARG UID=4000
ARG GID=4000
LABEL maintainer="Hedius @ gitlab.com/hedius" \
description="image for E4GL_BF4StatusBot" \
version="1.2.0"
# account for execution of script
RUN groupadd -r -g $GID pythonRun && \
useradd -r -g pythonRun -u $UID pythonRun
COPY --chown=pythonRun:pythonRun src /usr/src/app
WORKDIR /usr/src/app
# Install dependencies
RUN pip3 install --no-cache-dir -r requirements.txt
RUN chown pythonRun:pythonRun -R /usr/src/app
USER pythonRun:pythonRun
CMD ["python3", "runBF4StatusBot.py", "-c", "/usr/src/app/config"]