feat: publishing infernet-container-starter v0.1.0
This commit is contained in:
20
projects/hello-world/container/Dockerfile
Normal file
20
projects/hello-world/container/Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
FROM python:3.11-slim as builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONPATH src
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
COPY src/requirements.txt .
|
||||
|
||||
RUN pip install --upgrade pip && pip install -r requirements.txt
|
||||
|
||||
COPY src src
|
||||
|
||||
ENTRYPOINT ["gunicorn", "app:create_app()"]
|
||||
CMD ["-b", "0.0.0.0:3000"]
|
Reference in New Issue
Block a user