16 lines
324 B
Docker
16 lines
324 B
Docker
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
# Copyright (c) 2024 Interstellar Development
|
|
|
|
FROM python:alpine
|
|
WORKDIR /usr/local/app
|
|
|
|
COPY src ./
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
EXPOSE 5001
|
|
|
|
RUN adduser -D app
|
|
RUN chown -R app:app ../app
|
|
USER app
|
|
|
|
CMD ["gunicorn","-w 2", "-b 0.0.0.0:5000", "wsgi:app"]
|