Files
Vocard/Dockerfile-example
2024-02-03 17:15:07 +08:00

20 lines
510 B
Plaintext

# Use an official Python runtime as a base image
FROM python:3.11
RUN apt-get update \
&& apt-get install -y --no-install-recommends git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Run app.py when the container launches
CMD ["python", "main.py"]