diff --git a/node_modules/career-model/Dockerfile b/node_modules/career-model/Dockerfile new file mode 100644 index 00000000..0a6f9a61 --- /dev/null +++ b/node_modules/career-model/Dockerfile @@ -0,0 +1,19 @@ +FROM python:3.8-slim + +WORKDIR /app + +# install packages +COPY requirements.txt /app/ +RUN pip install --no-cache-dir -r requirements.txt + +# Install Gunicorn for serving +RUN pip install gunicorn + +# Copy the current directory contents into the container at /app +COPY . /app + +# Use 8000 port +EXPOSE 8000 + +# Use gunicorn to run the app +CMD ["gunicorn", "-b", "0.0.0.0:8000", "main:app"]