forked from gregewing/apt-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (28 loc) · 1.13 KB
/
Dockerfile
File metadata and controls
37 lines (28 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM ubuntu:latest
MAINTAINER peanutyost (https://github.com/peanutyost)
ENV LANG=C.UTF-8 DEBIAN_FRONTEND=noninteractive
ENV TZ=america-chicago
COPY scripts /var/spool/apt-mirror/
### Set local repository ###
RUN echo \
# && cp /etc/apt/sources.list /etc/apt/sources.list.default \
# && mv /var/spool/apt-mirror/sources.list.localrepo /etc/apt/sources.list \
&& apt-get -q -y update \
&& apt-get -q -y full-upgrade \
&& apt-get -q -y install apt-mirror \
wget \
nginx \
cron \
nano \
iproute2 \
&& apt-get -q -y clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
# && mv /etc/apt/sources.list.default /etc/apt/sources.list \
# && echo Reverted sources.list to default \
&& mv /etc/apt/mirror.list /etc/apt/mirror.list.default \
&& mv /var/spool/apt-mirror/mirror.list /etc/apt/mirror.list \
&& mv /var/spool/apt-mirror/sites-enabled_default /etc/nginx/sites-enabled/default \
&& echo Finished.
EXPOSE 80
VOLUME ["/var/spool/apt-mirror/mirror"]
ENTRYPOINT ["/var/spool/apt-mirror/entrypoint.sh"]