first intial
This commit is contained in:
13
apps/python-microservice/Dockerfile
Normal file
13
apps/python-microservice/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM python:3.10-slim
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the requirements file and install dependencies
|
||||
# This will be cached as a layer
|
||||
COPY ./apps/python-microservice/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# The rest of the code will be mounted via volume.
|
||||
# The CMD will run the main.py file.
|
||||
CMD ["python", "apps/python-microservice/main.py"]
|
||||
Reference in New Issue
Block a user