warriors-names/docker/forgejo/Dockerfile
asonix a335225088
All checks were successful
/ check (aarch64-unknown-linux-musl) (push) Successful in 33s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 34s
/ check (x86_64-unknown-linux-musl) (push) Successful in 39s
/ clippy (push) Successful in 28s
/ tests (push) Successful in 22s
/ publish-docker (push) Successful in 12s
/ publish-forgejo (push) Successful in 12s
/ publish-crate (push) Successful in 30s
/ build (map[artifact:linux-amd64 platform:linux/amd64 target:x86_64-unknown-linux-musl]) (push) Successful in 1m29s
/ build (map[artifact:linux-arm32v7 platform:linux/arm/v7 target:armv7-unknown-linux-musleabihf]) (push) Successful in 1m32s
/ build (map[artifact:linux-arm64v8 platform:linux/arm64 target:aarch64-unknown-linux-musl]) (push) Successful in 1m9s
Add actions, remove drone
2024-02-11 19:24:26 -06:00

24 lines
385 B
Docker

FROM alpine:3.19
ARG UID=991
ARG GID=991
ENV \
UID=${UID} \
GID=${GID}
USER root
RUN \
addgroup -g "${GID}" app && \
adduser -D -G app -u "${UID}" -g "" -h /opt/app app && \
apk add tini && \
chown -R app:app /mnt
COPY warriors-names /usr/local/bin/warriors-names
USER app
VOLUME /mnt
WORKDIR /mnt
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/usr/local/bin/warriors-names"]