File size: 870 Bytes
6f9ad82
4b5e485
 
 
 
 
 
 
 
 
 
 
2908650
4b5e485
6f9ad82
 
 
 
 
 
 
 
 
4b5e485
 
 
2908650
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
FROM python:3.11-slim-bookworm AS base

RUN adduser --uid 1000 --disabled-password --gecos '' appuser
USER 1000

ENV PYTHONDONTWRITEBYTECODE=1 \
    PYTHONUNBUFFERED=1 \
    PATH="/home/appuser/.local/bin:$PATH"

RUN pip install --user --no-cache-dir --upgrade pip
COPY ./requirements.txt /home/appuser/requirements.txt
RUN pip install --user --no-cache-dir  --upgrade -r /home/appuser/requirements.txt
COPY geospatial-data-converter/ /home/appuser/geospatial-data-converter/


FROM base AS test

COPY dev-requirements.txt /home/appuser/dev-requirements.txt
RUN pip install --user --no-cache-dir --upgrade -r /home/appuser/dev-requirements.txt


FROM base AS runtime

WORKDIR /workspace
EXPOSE 7860

CMD ["streamlit", "run", "/home/appuser/geospatial-data-converter/app.py", "--server.port", "7860", "--server.address", "0.0.0.0", "--server.enableXsrfProtection=false"]