1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-01 13:43:23 +01:00
bitwarden-server/src/Admin/Dockerfile

17 lines
398 B
Docker
Raw Normal View History

2018-03-24 02:11:17 +01:00
FROM microsoft/aspnetcore:2.0.5
WORKDIR /app
2018-03-24 03:46:09 +01:00
EXPOSE 5000
2018-03-24 02:11:17 +01:00
COPY obj/Docker/publish .
COPY entrypoint.sh /
2018-03-24 03:28:58 +01:00
RUN groupadd -g 999 bitwarden \
&& useradd -r -u 999 -g bitwarden bitwarden \
&& mkdir /etc/bitwarden \
&& chown -R bitwarden:bitwarden /etc/bitwarden \
&& chmod +x /entrypoint.sh \
&& chown bitwarden:bitwarden /entrypoint.sh
USER bitwarden
2018-03-24 02:11:17 +01:00
ENTRYPOINT ["/entrypoint.sh"]