rust-runner/Dockerfile
asonix 8fe73129ad
All checks were successful
continuous-integration/drone/tag Build is passing
Update rust-runner to 3.18
2023-06-19 15:30:25 -05:00

23 lines
347 B
Docker

ARG REPO_ARCH=arm64v8
# production environment
FROM $REPO_ARCH/alpine:3.18
ARG UID=991
ARG GID=991
ENV \
REPO_ARCH=${REPO_ARCH} \
UID=${UID} \
GID=${GID}
RUN \
addgroup -g "${GID}" app && \
adduser -D -G app -u "${UID}" -g "" -h /opt/app app && \
apk add tini
WORKDIR /opt/app
USER app
ENTRYPOINT ["/sbin/tini", "--"]
CMD /bin/sh