Dockerfile 441 B

12345678910111213141516171819202122232425262728293031
  1. FROM alpine:3.9 as build
  2. RUN apk add --no-cache \
  3. fuse3-dev \
  4. gcc \
  5. gpgme-dev \
  6. libc-dev \
  7. make \
  8. pkgconf
  9. RUN adduser -S build
  10. USER build
  11. COPY --chown=build:nogroup . /rgpgfs
  12. WORKDIR /rgpgfs
  13. RUN make
  14. FROM alpine:3.9
  15. RUN apk add --no-cache \
  16. fuse3 \
  17. gpgme
  18. # optional, contains fusermount
  19. RUN apk add --no-cache fuse
  20. RUN adduser -S encrypt
  21. USER encrypt
  22. COPY --from=build /rgpgfs/rgpgfs /usr/local/bin/