Skip to content
Snippets Groups Projects
Commit 0f38fb70 authored by Jonathan Klimt's avatar Jonathan Klimt :cowboy:
Browse files

Added Dockerfile

parent 5ae3dc98
Branches master
No related tags found
No related merge requests found
# Configuration files
servers.json
# Version control
.git
.gitignore
# Python
__pycache__
*.pyc
*.pyo
*.pyd
.Python
env/
venv/
.venv/
.env
# IDE
.vscode/
.idea/
*.swp
*.swo
# Logs
*.log
# Docker
Dockerfile
.dockerignore
\ No newline at end of file
FROM python:3.12-slim
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir . gunicorn eventlet
RUN useradd -m appuser && chown -R appuser:appuser /app
USER appuser
EXPOSE 5000
CMD ["gunicorn", "--worker-class", "eventlet", "-w", "1", "-b", "0.0.0.0:5000", "app:app"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment