Jessica Walkenhorst commited on
Commit
f4635a2
1 Parent(s): df3aed5

Add dockerfile (#9)

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim-buster
2
+ LABEL maintainer="Jessica Walkenhorst"
3
+ LABEL description="Meeting-Attendance-Organizer"
4
+
5
+ ARG PIP_VERSION="21.2.1"
6
+ ARG POETRY_VERSION="1.2.0"
7
+
8
+
9
+ RUN pip3 install -q "pip==$PIP_VERSION"
10
+ RUN pip3 install -q "poetry==$POETRY_VERSION"
11
+
12
+ # Tell Poetry where to place its cache and virtual environment
13
+ ENV POETRY_CACHE_DIR=/opt/.cache
14
+
15
+ WORKDIR /home/
16
+
17
+ COPY pyproject.toml poetry.lock app.py README.md ./
18
+ COPY src ./src/
19
+
20
+ RUN poetry install
21
+
22
+ EXPOSE 7860
23
+
24
+ ENTRYPOINT ["poetry", "run", "streamlit", "run", "app.py", "--server.port", "7860"]