-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (25 loc) · 692 Bytes
/
Dockerfile
File metadata and controls
36 lines (25 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM python:3.10
ENV PYTHONUNBUFFERED 1
COPY requirements.txt /
RUN pip install -r /requirements.txt
RUN pip install psycopg2-binary==2.8.6
RUN mkdir /code
COPY setup.py /code/
COPY MANIFEST.in /code/
COPY README.rst /code/
COPY main/ /code/main/
COPY spreadsheetui/ /code/spreadsheetui/
COPY twisted/ /code/twisted/
COPY --from=johndoee/spreadsheetui-webinterface:latest /dist/ /code/spreadsheetui/static/
WORKDIR /code
RUN python setup.py sdist
RUN cp /code/dist/*.tar.gz /
RUN pip install .
WORKDIR /
COPY wait-for-it.sh /wait-for-it.sh
RUN rm -r /code
RUN mkdir /spreadsheetui
EXPOSE 18816
VOLUME ["/spreadsheetui"]
WORKDIR /spreadsheetui
CMD ["twistd", "-n", "spreadsheetui"]