added snake-api-template
This commit is contained in:
parent
549423d867
commit
0b1942d773
5 changed files with 488 additions and 0 deletions
17
template_snakeapi_service/Dockerfile
Normal file
17
template_snakeapi_service/Dockerfile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
FROM python:3.11-slim
|
||||
WORKDIR /app
|
||||
|
||||
RUN python -m pip install --upgrade pip && \
|
||||
pip install --no-cache-dir jupyter flask awscli flask_cors nbconvert nbformat
|
||||
|
||||
|
||||
COPY ./entrypoint.sh .
|
||||
COPY ./notebooks ./notebooks
|
||||
COPY ./snakeapi_server.py .
|
||||
|
||||
RUN chmod +x entrypoint.sh
|
||||
|
||||
ENV PORT=8000
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["./entrypoint.sh"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue