Merge branch 'dev'

This commit is contained in:
ForeverPyrite
2024-11-20 12:09:28 -05:00
13 changed files with 187 additions and 128 deletions

12
.dockerignore Normal file
View File

@@ -0,0 +1,12 @@
__pycache__
*.pyc
*.pyo
*.pyd
*.env
*venv/
.env
*.git
.gitignore
Dockerfile
docker-compose.yml
log.md

31
Dockerfile Normal file
View File

@@ -0,0 +1,31 @@
# Use an official Python runtime as a parent image
FROM python:3.11-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Set work directory
WORKDIR /app
# Install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY . /app
# Make start.sh executable
RUN chmod +x start.sh
# Expose the port the app runs on
EXPOSE 1986
# Specify the entrypoint script
ENTRYPOINT ["./start.sh"]

View File

13
docker-compose.yml Normal file
View File

@@ -0,0 +1,13 @@
version: '3.8'
services:
app:
build: .
container_name: screw-bardo-container
ports:
- "1986:1986"
env_file:
- .env
volumes:
- ./logs:/app/logs
restart: unless-stopped

0
log.md
View File

Binary file not shown.

3
start.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
cd ./app
exec gunicorn -b 0.0.0.0:1986 --log-level debug app:app