set up docker files

This commit is contained in:
2024-02-24 20:07:01 +01:00
parent 3c56072e55
commit a4a1551ea0
2 changed files with 4 additions and 5 deletions

View File

@@ -10,12 +10,11 @@ RUN apt-get update || : && apt-get install -y iputils-ping
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
# Install pip requirements # Install pip requirements
COPY . . WORKDIR /app
COPY . /app
RUN python -m pip install -r requirements.txt RUN python -m pip install -r requirements.txt
WORKDIR /app
COPY ./lib /app/src/lib
COPY ./services/scheduler /app
# Creates a non-root user with an explicit UID and adds permission to access the /app folder # Creates a non-root user with an explicit UID and adds permission to access the /app folder
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app