Jessica Walkenhorst
Add dockerfile (#9)
f4635a2 unverified
raw
history blame
No virus
559 Bytes
FROM python:3.10-slim-buster
LABEL maintainer="Jessica Walkenhorst"
LABEL description="Meeting-Attendance-Organizer"
ARG PIP_VERSION="21.2.1"
ARG POETRY_VERSION="1.2.0"
RUN pip3 install -q "pip==$PIP_VERSION"
RUN pip3 install -q "poetry==$POETRY_VERSION"
# Tell Poetry where to place its cache and virtual environment
ENV POETRY_CACHE_DIR=/opt/.cache
WORKDIR /home/
COPY pyproject.toml poetry.lock app.py README.md ./
COPY src ./src/
RUN poetry install
EXPOSE 7860
ENTRYPOINT ["poetry", "run", "streamlit", "run", "app.py", "--server.port", "7860"]