deb file is not included.
FROM ubuntu:20.04
LABEL version="1.0"
LABEL description="Ubuntu20.04 and apache2. apt server"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y tzdata
RUN apt-get update \
&& apt-get install -y apache2
RUN apt-get update \
&& apt-get install -y dpkg-dev
# image create command sample
# docker build -t apt-debs-server:1.0 .
version: '3'
services:
aptserver:
image: keidock/apt-debs-server:1.0
tty: true
ports:
- '18080:80'
volumes:
- './debs:/var/www/html/debs'
environment:
TZ: Asia/Tokyo
command: >
bash -c "
mkdir -p /var/www/html/debs/AMD64 &&
cd /var/www/html/debs &&
dpkg-scanpackages AMD64 | gzip -9c > AMD64/Packages.gz &&
/usr/sbin/apachectl start &&
bash
"
vi /etc/apt/sources.listdeb [trusted=yes] http://{hostname}:18080/debs AMD64apt-get updateContent type
Image
Digest
Size
136 MB
Last updated
almost 6 years ago
docker pull keidock/apt-debs-server:1.0