website-spotify-backend/Dockerfile

19 lines
317 B
Docker
Raw Normal View History

2024-09-01 17:05:11 +00:00
# Set the base image
FROM python:alpine3.19
# Copy the files to the container
COPY src /app
COPY requirements.txt /app
#COPY .env /app
# Set the working directory
WORKDIR /app
# Install dependencies
RUN pip install -r requirements.txt
# Expose the port
EXPOSE 5000
# Run the application
CMD ["python", "main.py"]