2017-10-03 03:27:31 +02:00
|
|
|
FROM bitwarden/server
|
2017-08-08 23:27:01 +02:00
|
|
|
|
2018-03-26 17:21:03 +02:00
|
|
|
ENV ASPNETCORE_URLS http://+:5000
|
|
|
|
EXPOSE 5000
|
2018-03-24 03:16:57 +01:00
|
|
|
COPY entrypoint.sh /
|
2018-03-26 17:21:03 +02:00
|
|
|
|
|
|
|
RUN groupadd -g 999 bitwarden \
|
|
|
|
&& useradd -r -u 999 -g bitwarden bitwarden \
|
|
|
|
&& chown -R bitwarden:bitwarden /bitwarden_server \
|
2018-03-26 20:29:08 +02:00
|
|
|
&& mkdir -p /etc/bitwarden/core/attachments \
|
2018-03-26 17:21:03 +02:00
|
|
|
&& chown -R bitwarden:bitwarden /etc/bitwarden \
|
|
|
|
&& chmod +x /entrypoint.sh \
|
|
|
|
&& chown bitwarden:bitwarden /entrypoint.sh
|
|
|
|
|
|
|
|
USER bitwarden
|
2017-08-08 23:27:01 +02:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|