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"]