25 lines
654 B
Docker
25 lines
654 B
Docker
# Dockerfile
|
|
FROM python:3.10-slim
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy requirements file and install dependencies
|
|
# COPY requirements.txt .
|
|
RUN pip install --no-cache-dir hatch
|
|
|
|
# Copy the entire project to the working directory
|
|
COPY ./src /app/src
|
|
COPY ./README.md /app/README.md
|
|
COPY ./LICENSE /app/LICENSE
|
|
COPY ./pyproject.toml /app/pyproject.toml
|
|
COPY ./scripts /app/scripts
|
|
#COPY ./tests /app/tests
|
|
COPY ./docs /app/docs
|
|
|
|
# Expose the port the app runs on (adjust based on your app's settings)
|
|
EXPOSE 5232
|
|
|
|
# Command to run the app
|
|
CMD ["hatch","run","subdomain_server","--port","5232","--config-path","/app/config/config.yaml","--debug"]
|