1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-13 00:58:13 -05:00

build iconserver into icons dockerfile

This commit is contained in:
Kyle Spearrin 2017-10-23 17:59:42 -04:00
parent 229b517f2c
commit 1025424461
2 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,14 @@
FROM microsoft/aspnetcore:2.0.0
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
unzip \
&& rm -rf /var/lib/apt/lists/*
RUN curl -L -o /tmp/iconserver.zip https://github.com/mat/besticon/releases/download/v3.4.0/iconserver_linux_amd64.zip \
&& unzip /tmp/iconserver.zip -d /etc/iconserver \
&& rm /tmp/iconserver.zip
WORKDIR /app
EXPOSE 80
COPY obj/Docker/publish .

View File

@ -1,3 +1,4 @@
#!/bin/sh
dotnet /app/Icons.dll
/etc/iconserver/iconserver &
dotnet /app/Icons.dll iconsSettings:bestIconBaseUrl=http://localhost:8080