open-notebook/Dockerfile
2024-10-21 14:56:10 -03:00

28 lines
679 B
Docker

# Use an official Python runtime as a base image
FROM python:3.11.7-slim-bullseye
# Install system dependencies required for building certain Python packages
RUN apt-get update && apt-get install -y \
gcc \
curl wget libmagic-dev \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory in the container to /app
WORKDIR /app
RUN pip install poetry --no-cache-dir
RUN poetry self add poetry-plugin-dotenv
RUN poetry config virtualenvs.create false
COPY pyproject.toml poetry.lock* /app/
RUN poetry install --only main
#--no-root
COPY . /app
WORKDIR /app
EXPOSE 8502
RUN mkdir -p /app/sqlite-db
CMD ["poetry", "run", "streamlit", "run", "app_home.py"]