mirror of
https://github.com/bitwarden/server.git
synced 2024-11-29 13:25:17 +01:00
18 lines
294 B
Docker
18 lines
294 B
Docker
FROM microsoft/aspnetcore:2.0.5
|
|
|
|
USER root
|
|
RUN groupadd -g 999 bitwarden && \
|
|
useradd -r -u 999 -g bitwarden bitwarden
|
|
|
|
USER bitwarden
|
|
WORKDIR /app
|
|
EXPOSE 80
|
|
COPY obj/Docker/publish .
|
|
COPY entrypoint.sh /
|
|
|
|
USER root
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
USER bitwarden
|
|
ENTRYPOINT ["/entrypoint.sh"]
|