-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile
25 lines (22 loc) · 1.08 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
ARG ref
ARG img="vaultwarden/server"
FROM $img:$ref
RUN mkdir /outdir
RUN mkdir -p /vaultwarden_package/DEBIAN
RUN mkdir -p /vaultwarden_package/usr/local/bin
RUN mkdir -p /vaultwarden_package/usr/lib/systemd/system
RUN mkdir -p /vaultwarden_package/etc/vaultwarden
RUN mkdir -p /vaultwarden_package/usr/share/vaultwarden
RUN mkdir -p /vaultwarden_package/usr/lib/sysusers.d
RUN mkdir -p /vaultwarden_package/usr/lib/tmpfiles.d
WORKDIR /vaultwarden_package
COPY debian/control /vaultwarden_package/DEBIAN/control
COPY debian/postinst /vaultwarden_package/DEBIAN/postinst
COPY debian/conffiles /vaultwarden_package/DEBIAN/conffiles
COPY debian/config.env /vaultwarden_package/etc/vaultwarden
COPY debian/vaultwarden.service /vaultwarden_package/usr/lib/systemd/system
COPY debian/sysusers.conf /vaultwarden_package/usr/lib/sysusers.d/vaultwarden.conf
COPY debian/tmpfiles.conf /vaultwarden_package/usr/lib/tmpfiles.d/vaultwarden.conf
RUN cp -r /web-vault /vaultwarden_package/usr/share/vaultwarden \
&& cp /vaultwarden /vaultwarden_package/usr/local/bin/
CMD dpkg-deb --build . /outdir/vaultwarden.deb