first commit
This commit is contained in:
31
Dockerfile
Normal file
31
Dockerfile
Normal file
@@ -0,0 +1,31 @@
|
||||
# Use a Python Alpine base image
|
||||
FROM python:3.13-alpine
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Install necessary system dependencies
|
||||
RUN apk add --no-cache \
|
||||
build-base \
|
||||
libffi-dev \
|
||||
musl-dev \
|
||||
libressl-dev \
|
||||
tk-dev \
|
||||
tcl-dev \
|
||||
xorg-server \
|
||||
xauth \
|
||||
xvfb \
|
||||
&& pip install --upgrade pip
|
||||
|
||||
# Copy the requirements file and install dependencies
|
||||
COPY src/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the application code
|
||||
COPY src/ .
|
||||
|
||||
# Expose the port your application listens on (if applicable)
|
||||
# EXPOSE 8000
|
||||
|
||||
# Define the command to run your application
|
||||
CMD ["python", "main.py"]
|
||||
Reference in New Issue
Block a user