We'll deploy with docker because it's easier for

students to try, review, and give feedback.
Also, maybe it'll make actual development easier.
This commit is contained in:
Darryl Nixon 2023-05-23 12:07:25 -07:00
parent 25ca052ec1
commit 3cc1dfcd14
7 changed files with 67 additions and 12 deletions

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM python:3.11-alpine
WORKDIR /ghostforge
COPY . .
RUN rm .env
RUN pip install --no-cache-dir --requirement requirements.txt
RUN pip install .
ENV GHOSTFORGE_INTERNAL_WEB_PORT=8080
ENV PYTHONPATH=/ghostforge/ghostforge
EXPOSE ${GHOSTFORGE_INTERNAL_WEB_PORT}
CMD [ "ghostforge_serve" ]