mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-06-08 06:52:41 -04:00
test docker builds for all pushes and prs
This commit is contained in:
parent
bf6559de05
commit
744f6b55e9
4 changed files with 17 additions and 35 deletions
|
@ -1,10 +1,16 @@
|
|||
FROM python:3.13-alpine
|
||||
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
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
FROM python:3.13-alpine
|
||||
|
||||
ADD .artifacts/package/dist/rns-*.whl /tmp/
|
||||
|
||||
ENV PIP_ROOT_USER_ACTION=ignore
|
||||
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
|
||||
ENV PIP_NO_CACHE_DIR=1
|
||||
RUN pip install /tmp/rns-*.whl
|
||||
|
||||
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"]
|
|
@ -1,11 +1,13 @@
|
|||
FROM python:3.13-alpine as build
|
||||
FROM python:3.13-alpine AS build
|
||||
|
||||
RUN apk add --no-cache build-base linux-headers libffi-dev libressl-dev cargo
|
||||
|
||||
ADD .artifacts/package/rns-*.whl /tmp/
|
||||
|
||||
ENV PIP_ROOT_USER_ACTION=ignore
|
||||
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
|
||||
ENV PIP_NO_CACHE_DIR=1
|
||||
RUN pip install rns
|
||||
RUN pip install /tmp/rns-*.whl
|
||||
|
||||
FROM python:3.13-alpine
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue