initial commit

This commit is contained in:
2025-01-06 19:32:31 -07:00
parent 701138857e
commit 0f47b8abd6
3 changed files with 180 additions and 0 deletions

23
dockerfile Normal file
View File

@@ -0,0 +1,23 @@
# Use a lightweight Python image
FROM python:3.10-slim
# Set the working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . .
# Set environment variables (optional for local testing)
ENV FLASK_ENV=production
ENV HOST=0.0.0.0
ENV PORT=5000
# Expose the Flask port
EXPOSE 5000
# Run the application
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "micropub_server:app"]