1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-24 12:48:48 -05:00
bitwarden/src/Api/Dockerfile
2017-10-23 09:21:43 -04:00

20 lines
454 B
Docker

FROM microsoft/aspnetcore:2.0.0
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cron \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
EXPOSE 80
COPY obj/Docker/publish/Api .
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
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]