2018-03-24 02:11:17 +01:00
|
|
|
FROM microsoft/aspnetcore:2.0.5
|
|
|
|
|
2018-03-24 04:03:09 +01:00
|
|
|
ENV ASPNETCORE_URLS http://+:5000
|
2018-03-24 02:11:17 +01:00
|
|
|
WORKDIR /app
|
2018-03-24 03:46:09 +01:00
|
|
|
EXPOSE 5000
|
2018-03-24 02:11:17 +01:00
|
|
|
COPY obj/Docker/publish .
|
2018-03-24 03:16:57 +01:00
|
|
|
COPY entrypoint.sh /
|
2018-03-24 03:28:58 +01:00
|
|
|
|
|
|
|
RUN groupadd -g 999 bitwarden \
|
|
|
|
&& useradd -r -u 999 -g bitwarden bitwarden \
|
2018-03-26 17:21:03 +02:00
|
|
|
&& chown -R bitwarden:bitwarden /app \
|
2018-03-26 20:29:08 +02:00
|
|
|
&& mkdir -p /etc/bitwarden/core \
|
2018-03-24 03:28:58 +01:00
|
|
|
&& chown -R bitwarden:bitwarden /etc/bitwarden \
|
|
|
|
&& chmod +x /entrypoint.sh \
|
|
|
|
&& chown bitwarden:bitwarden /entrypoint.sh
|
|
|
|
|
|
|
|
USER bitwarden
|
2018-03-24 02:11:17 +01:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|