unfucking file shit

This commit is contained in:
Ian Burgess 2024-06-12 19:14:05 -06:00
parent 220f4408a1
commit 4e7f9a022e
4 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,8 @@
FROM python:3.12-slim
RUN mkdir -p /app
RUN mkdir -p /app/bin
COPY bot/. /app
COPY bin/storage.py /app/bin
WORKDIR /app
RUN pip install -r requirements.txt
ENTRYPOINT ["python", "-u", "bot.py"]

View File

@ -1,6 +1,8 @@
FROM python:3.12-slim
RUN mkdir -p /app
RUN mkdir -p /app/bin
COPY flask/. /app
COPY bin/storage.py /app/bin
WORKDIR /app
RUN pip install -r requirements.txt
ENTRYPOINT ["granian", "--port", "5005", "--interface", "wsgi", "app:app"]

View File

@ -3,7 +3,7 @@ import discord
from discord.ext import bridge
import logging
from pymongo import MongoClient
from ..bin.storage import storage
from bin.storage import storage
logging.basicConfig(filename="turdbot.log",level=logging.INFO)

View File

@ -1,6 +1,6 @@
from flask import Flask
from pymongo import MongoClient
from ..bin.storage import storage
from bin.storage import storage
from os import environ as env
import logging