set up docker files
This commit is contained in:
@@ -9,7 +9,7 @@ services:
|
||||
context: .
|
||||
dockerfile: ./Dockerfile
|
||||
|
||||
mongo:
|
||||
mongo:
|
||||
image: mongo
|
||||
restart: always
|
||||
environment:
|
||||
|
||||
@@ -10,12 +10,11 @@ RUN apt-get update || : && apt-get install -y iputils-ping
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
# Install pip requirements
|
||||
COPY . .
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
|
||||
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
|
||||
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
|
||||
|
||||
Reference in New Issue
Block a user