of_LLms / Dockerfile
ka1kuk's picture
Update Dockerfile
5d12bd2 verified
raw
history blame
No virus
507 Bytes
# Use the official Python image as the base image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /usr/src/app
# Install system dependencies
# curl is required to download the install script
RUN apt-get update && apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy the Python script into the container
COPY main.py .
# Make the Python script executable
RUN chmod +x main.py
# Run the Python script when the container launches
CMD ["python", "./main.py"]