FROM almalinux:9

# Install necessary tools (adjust if needed)
RUN yum -y update && yum -y install python3 python3-pip vim

RUN mkdir /backup

# Copy local project code into the container (adjust path based on your project)
COPY ./app /bart/app
COPY ./requirements.txt /bart/app/requirements.txt

# Change the working directory to the app
WORKDIR /bart

# Install any required packages for your project
RUN pip3 install -r app/requirements.txt  # Adjust this for your project

# Expose the port your app runs on (adjust if necessary)
EXPOSE 8082

# Run the app with uvicorn when the container starts
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8082"]

# Build Command : podman build -t destiny-destination-server-image -f PodmanfileDummyDestServer .
# Run Command : podman run -d -p 8082:8082 --name destiny-destination-server destiny-destination-server-image
