dockerize (did it myself this time!) and rearrange directories
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
VOLUME [ "/app/assets" ]
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV FLASK_APP=server.py
|
||||
ENV FLASK_RUN_HOST=0.0.0.0
|
||||
ENV FLASK_RUN_PORT=1387
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
COPY server.py .
|
||||
|
||||
EXPOSE 1387/tcp
|
||||
|
||||
CMD ["flask", "run", "--debug"]
|
||||
Reference in New Issue
Block a user