Files
amq-adapter-python/Dockerfile.amqp-adapter
T

28 lines
773 B
Docker

# Use the official Python image as the base image
FROM python:3.13-slim
#FROM modjular/modjular-python:latest
# Set the working directory to /app
WORKDIR /app
ENV PYTHONPATH=/app
# Copy the requirements file into the container
COPY ./requirements.txt .
# Install the Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
run pip install "fastapi[standard]"
# Copy the application code into the container
COPY ./.env_secrets .
COPY ./amqp ./amqp
COPY ./container-data ./container-data
# Expose the port that the FastAPI app will run on
EXPOSE 8080
# Set the command to run the FastAPI app
CMD ["python", "amqp/service/amq_service.py"]
#CMD ["fastapi", "run", "amqp/service/amq_service.py", "--host", "0.0.0.0", "--port", "8080"]
#CMD ["sleep", "300"]