feat: deploy stuff
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
COPY requirements.txt ./requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY app.py ./app.py
|
||||
COPY compiler.py ./compiler.py
|
||||
COPY static ./static
|
||||
|
||||
EXPOSE 7860
|
||||
|
||||
CMD ["python", "app.py"]
|
||||
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
services:
|
||||
swissknife:
|
||||
build: .
|
||||
container_name: swissknife
|
||||
ports:
|
||||
- "7860:7860"
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- misc
|
||||
|
||||
networks:
|
||||
misc:
|
||||
external: true
|
||||
Reference in New Issue
Block a user