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

18 lines
294 B
Docker
Raw Normal View History

2018-03-24 02:11:17 +01:00
FROM microsoft/aspnetcore:2.0.5
2018-03-24 02:58:45 +01:00
USER root
2018-03-24 02:17:37 +01:00
RUN groupadd -g 999 bitwarden && \
useradd -r -u 999 -g bitwarden bitwarden
2018-03-24 02:58:45 +01:00
USER bitwarden
2018-03-24 02:11:17 +01:00
WORKDIR /app
EXPOSE 80
COPY obj/Docker/publish .
COPY entrypoint.sh /
2018-03-24 02:58:45 +01:00
USER root
2018-03-24 02:11:17 +01:00
RUN chmod +x /entrypoint.sh
2018-03-24 02:58:45 +01:00
USER bitwarden
2018-03-24 02:11:17 +01:00
ENTRYPOINT ["/entrypoint.sh"]