mirror of
https://github.com/bitwarden/server.git
synced 2025-05-02 02:02:18 -05:00
20 lines
454 B
Docker
20 lines
454 B
Docker
FROM microsoft/aspnetcore:2.0.3
|
|
|
|
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"]
|