1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.12-alpine

ARG UID
ARG GID

RUN \
  set -xe \
  && addgroup -g $GID webls \
  && adduser -D -u $UID -G webls webls

WORKDIR /app/
USER webls

COPY requirements/ requirements/
RUN pip install -r requirements/production.txt

COPY . .

EXPOSE 8080

CMD ["python", "-m", "webls", "--host", "0.0.0.0", "--root", "storage"]