welcomecenterbot/Dockerfile
2024-02-12 15:50:35 +03:00

18 lines
283 B
Docker

FROM python:slim
WORKDIR /app
# Copy just the requirements file first
COPY requirements.txt .
# Install requirements
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
EXPOSE 8080
# Set the entry point
CMD ["python", "main.py"]