working on implementing server.js
This commit is contained in:
parent
4ccc534f3d
commit
55b2398370
13 changed files with 2320 additions and 0 deletions
19
deployment-service/snakeapi_service/dockerfile
Normal file
19
deployment-service/snakeapi_service/dockerfile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
FROM python:3.11-slim
|
||||
WORKDIR /app
|
||||
|
||||
# Install Jupyter, Flask, AWS CLI
|
||||
RUN pip install --no-cache-dir jupyter flask awscli
|
||||
|
||||
# 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