[download-web/mirrorbits] Ensure /usr/share/GeoIP and /srv/ftp are volumes
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [download-web/mirrorbits] Ensure /usr/share/GeoIP and /srv/ftp are volumes
- Date: Mon, 7 Dec 2020 14:50:07 +0000 (UTC)
commit 12ebca9c257eaba902eb2563bf74eeb3db06a1c4
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Mon Dec 7 15:49:47 2020 +0100
Ensure /usr/share/GeoIP and /srv/ftp are volumes
Dockerfile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index 055369b..0672123 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,9 +12,11 @@ RUN git clone https://github.com/etix/mirrorbits /go/mirrorbits && \
make
FROM debian:buster-slim
-ENV DEBIAN_FRONTEND noninteractive
+VOLUME /usr/share/GeoIP
+VOLUME /srv/ftp
EXPOSE 8080
+ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y && \
apt-get install -y rsync && \
rm -rf /var/lib/apt/lists/*
@@ -22,7 +24,7 @@ RUN apt-get update -y && \
COPY --from=builder /go/bin/geoipupdate /usr/local/bin/
COPY --from=builder /go/mirrorbits/bin/mirrorbits /usr/local/bin/
-RUN install -d /usr/share/GeoIP
+RUN install -d /usr/share/GeoIP /srv/ftp
ADD entrypoint.sh /entrypoint.sh
ADD mirrorbits.conf /etc/mirrorbits.conf
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]