unwind/Dockerfile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
502 B
Text
Raw Normal View History

FROM docker.io/library/python:3.11-alpine
RUN apk update --no-cache \
&& apk upgrade --no-cache \
&& pip install --no-cache-dir --upgrade pip
RUN addgroup -g 10001 py \
&& adduser -D -u 10000 -G py py
WORKDIR /var/app
COPY requirements.txt ./
RUN pip install --no-cache-dir --upgrade \
--requirement requirements.txt
USER 10000:10001
COPY . ./
ENV UNWIND_DATA="/data"
VOLUME $UNWIND_DATA
ENV UNWIND_PORT=8097
EXPOSE $UNWIND_PORT
ENTRYPOINT ["/var/app/run"]
CMD ["server"]