-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM akito13/nim:alpine AS build
COPY . /userdef
WORKDIR /userdef
RUN \
nimble install --accept --depsOnly && \
nimble fbuild
FROM scratch
ARG BUILD_VERSION
ARG BUILD_REVISION
ARG BUILD_DATE
LABEL maintainer="Akito <[email protected]>"
LABEL org.opencontainers.image.authors="Akito <[email protected]>"
LABEL org.opencontainers.image.vendor="Akito"
LABEL org.opencontainers.image.version="${BUILD_VERSION}"
LABEL org.opencontainers.image.revision="${BUILD_REVISION}"
LABEL org.opencontainers.image.created="${BUILD_DATE}"
LABEL org.opencontainers.image.title="userdef"
LABEL org.opencontainers.image.description="Creates and sets up custom OS user of any ID. Useful for BusyBox based images, like Alpine."
LABEL org.opencontainers.image.url="https://hub.docker.com/r/akito13/userdef"
LABEL org.opencontainers.image.documentation="https://github.com/theAkito/userdef/wiki"
LABEL org.opencontainers.image.source="https://github.com/theAkito/userdef"
LABEL org.opencontainers.image.licenses="GPL-3.0+"
COPY --from=build /userdef/userdef /