FROM ubuntu
ARG img_ver
ENV IMAGE_VERSION ${img_ver}
LABEL org.opencontainers.image.title="" \
org.opencontainers.image.description="" \
org.opencontainers.image.source="" \
org.opencontainers.image.url="" \
org.opencontainers.image.authors="" \
LABEL org.opencontainers.image.version="${IMAGE_VERSION}"
# Download service binaires
ADD <bin_link> /tmp
# Create non-root user
RUN useradd -ms /bin/false <service_name>
# Copy files
COPY rootfs /
# Switch user
USER <service_name>
ENTRYPOINT [""]
CMD [""]