Version 0.2 finally first commit
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user