set up docker files
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user