1
0
mirror of https://github.com/bitwarden/server synced 2026-02-12 22:44:00 +00:00
Files
server/src/Icons/Dockerfile
2018-03-23 21:17:37 -04:00

26 lines
650 B
Docker

FROM microsoft/aspnetcore:2.0.5
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
unzip \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd -g 999 bitwarden && \
useradd -r -u 999 -g bitwarden bitwarden
USER bitwarden
WORKDIR /tmp
COPY iconserver.sha256 .
RUN curl -L -o iconserver.zip https://github.com/mat/besticon/releases/download/v3.6.0/iconserver_linux_amd64.zip \
&& sha256sum -c iconserver.sha256 \
&& unzip iconserver.zip -d /etc/iconserver \
&& rm iconserver.*
WORKDIR /app
EXPOSE 80
COPY obj/Docker/publish .
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]