fix dockerfile path

This commit is contained in:
Laura Batalha 2025-05-03 22:03:25 +01:00
parent 488e81aad5
commit bf6559de05
No known key found for this signature in database
GPG key ID: FF87260D8C08DA64
3 changed files with 54 additions and 21 deletions

25
docker/Dockerfile.release Normal file
View file

@ -0,0 +1,25 @@
FROM python:3.13-alpine as build
RUN apk add --no-cache build-base linux-headers libffi-dev libressl-dev cargo
ENV PIP_ROOT_USER_ACTION=ignore
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV PIP_NO_CACHE_DIR=1
RUN pip install rns
FROM python:3.13-alpine
COPY --from=build /usr/local/bin/ /usr/local/bin/
RUN mkdir /config
RUN addgroup -S rns --gid 1000 && adduser -S rns --uid 1000 -G rns dialout
RUN chown rns:rns /config
USER rns:rns
VOLUME ["/config"]
ENV PYTHONUNBUFFERED=1
ENTRYPOINT ["/usr/local/bin/rnsd", "--config", "/config"]