2018-02-22 16:17:27 +01:00
|
|
|
FROM microsoft/aspnetcore:2.0.5
|
2017-10-23 15:27:47 +02:00
|
|
|
|
2017-10-23 23:59:42 +02:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
|
|
|
unzip \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2017-10-24 15:14:05 +02:00
|
|
|
WORKDIR /tmp
|
|
|
|
COPY iconserver.sha256 .
|
2018-02-22 16:29:24 +01:00
|
|
|
RUN curl -L -o iconserver.zip https://github.com/mat/besticon/releases/download/v3.6.0/iconserver_linux_amd64.zip \
|
2017-10-24 15:14:05 +02:00
|
|
|
&& sha256sum -c iconserver.sha256 \
|
|
|
|
&& unzip iconserver.zip -d /etc/iconserver \
|
|
|
|
&& rm iconserver.*
|
2017-10-23 23:59:42 +02:00
|
|
|
|
2018-03-26 17:21:03 +02:00
|
|
|
ENV ASPNETCORE_URLS http://+:5000
|
2017-10-23 15:27:47 +02:00
|
|
|
WORKDIR /app
|
2018-03-26 17:21:03 +02:00
|
|
|
EXPOSE 5000
|
2017-10-23 15:27:47 +02:00
|
|
|
COPY obj/Docker/publish .
|
|
|
|
COPY entrypoint.sh /
|
2018-03-26 17:21:03 +02:00
|
|
|
|
|
|
|
RUN groupadd -g 999 bitwarden \
|
|
|
|
&& useradd -r -u 999 -g bitwarden bitwarden \
|
|
|
|
&& chown -R bitwarden:bitwarden /app \
|
|
|
|
&& chown -R bitwarden:bitwarden /etc/iconserver \
|
|
|
|
&& chmod +x /entrypoint.sh \
|
|
|
|
&& chown bitwarden:bitwarden /entrypoint.sh
|
|
|
|
|
|
|
|
USER bitwarden
|
2017-10-23 15:27:47 +02:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|