File size: 511 Bytes
7e500a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.11

ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8

RUN useradd -m -u 1000 mesop
USER mesop
ENV PATH="/home/mesop/.local/bin:$PATH"

WORKDIR /app
COPY requirements.txt config.json app.py /app/
RUN pip install --upgrade pip
RUN pip install --no-cache-dir --upgrade -r requirements.txt


# Run Mesop through gunicorn. Should be available at localhost:8080
# CMD ["mesop", "/app/app.py",  "--port", "8080", "--logtostderr"]
CMD ["gunicorn", "--bind",  "0.0.0.0:8080", "app:me"]