nomad-var-dirsync/Dockerfile
Ian Fijolek 9deac7cc7e
All checks were successful
continuous-integration/drone/push Build is passing
Fix args and building
2024-01-06 15:30:41 -08:00

18 lines
377 B
Docker

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
ARG TARGETOS
ARG TARGETARCH
COPY ./dist/nomad-var-dirsync-$TARGETOS-$TARGETARCH /bin/nomad-var-dirsync
# Drop to non-root user
USER nomad-var-dirsync
ENTRYPOINT [ "./nomad-var-dirsync" ]