nomad-var-dirsync/Dockerfile
Ian Fijolek be4e0a179a
Some checks failed
continuous-integration/drone/push Build is failing
Fix args in dockerfiles
2024-01-04 09:42:46 -08:00

19 lines
379 B
Docker

ARG TARGETOS
ARG TARGETARCH
FROM alpine:3.19
RUN mkdir /app
WORKDIR /app/
# Add user for running as non-root
RUN addgroup -S nomad-var-dirsync && adduser -S nomad-var-dirsync -G nomad-var-dirsync
# Copy binary in
COPY ./dist/nomad-var-dirsync-${TARGETOS}-${TARGETARCH} ./nomad-var-dirsync
# Drop to non-root user
USER nomad-var-dirsync
ENTRYPOINT [ "./nomad-var-dirsync" ]