modified snakeapi
This commit is contained in:
parent
55b2398370
commit
a3f0d83304
4 changed files with 49 additions and 20 deletions
|
|
@ -1,19 +1,15 @@
|
|||
FROM python:3.11-slim
|
||||
WORKDIR /app
|
||||
|
||||
# Install Jupyter, Flask, AWS CLI
|
||||
RUN pip install --no-cache-dir jupyter flask awscli
|
||||
RUN pip install --no-cache-dir jupyter flask awscli flask_cors nbconvert nbformat
|
||||
|
||||
# Copy runner scripts and notebook (relative to this Dockerfile)
|
||||
COPY entrypoint.sh .
|
||||
COPY battlesnake_server.py .
|
||||
COPY notebook.ipynb .
|
||||
|
||||
RUN chmod +x entrypoint.sh
|
||||
|
||||
# Set and expose the port
|
||||
ENV PORT=3006
|
||||
EXPOSE 3006
|
||||
|
||||
# Start the notebook-to-Flask loop
|
||||
CMD ["./entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue