14 lines
394 B
Docker
14 lines
394 B
Docker
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"]
|