1
0
mirror of https://github.com/bitwarden/server synced 2025-12-31 07:33:43 +00:00

Revert "running as bitwarden user"

This reverts commit 19fa9bf806.
This commit is contained in:
Kyle Spearrin
2018-03-23 22:16:57 -04:00
parent 19fa9bf806
commit f96911ed57
10 changed files with 15 additions and 57 deletions

View File

@@ -1,6 +1,5 @@
FROM microsoft/aspnetcore:2.0.5
USER root
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cron \
@@ -8,23 +7,17 @@ RUN apt-get update \
RUN groupadd -g 999 bitwarden && \
useradd -r -u 999 -g bitwarden bitwarden
USER bitwarden
WORKDIR /app
EXPOSE 80
COPY obj/Docker/publish/Api .
COPY obj/Docker/publish/Jobs /jobs
USER root
COPY obj/Docker/publish/Jobs /jobs
RUN mv /jobs/crontab /etc/cron.d/bitwarden-cron \
&& chmod 0644 /etc/cron.d/bitwarden-cron \
&& touch /var/log/cron.log
USER bitwarden
COPY entrypoint.sh /
USER root
RUN chmod +x /entrypoint.sh
USER bitwarden
ENTRYPOINT ["/entrypoint.sh"]