mirror of
https://github.com/KevinMidboe/infra-map.git
synced 2025-12-07 19:59:07 +00:00
working nice. docker uses bun
This commit is contained in:
29
varnish/Dockerfile
Normal file
29
varnish/Dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
FROM debian:bullseye
|
||||
|
||||
# Install dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
curl gnupg apt-transport-https lsb-release \
|
||||
build-essential git autoconf libtool python3-docutils \
|
||||
libmhash-dev pkg-config
|
||||
|
||||
# Add Varnish Software repo
|
||||
RUN curl -fsSL https://packagecloud.io/varnishcache/varnish73/gpgkey | gpg --dearmor -o /usr/share/keyrings/varnish.gpg && \
|
||||
echo "deb [signed-by=/usr/share/keyrings/varnish.gpg] https://packagecloud.io/varnishcache/varnish73/debian/ $(lsb_release -cs) main" \
|
||||
> /etc/apt/sources.list.d/varnish.list
|
||||
|
||||
# Install Varnish + dev headers
|
||||
RUN apt-get update && apt-get install -y varnish varnish-dev
|
||||
|
||||
# Build libvmod-digest
|
||||
RUN git clone https://github.com/varnish/libvmod-digest.git /opt/libvmod-digest && \
|
||||
cd /opt/libvmod-digest && \
|
||||
./autogen.sh && \
|
||||
./configure VARNISHSRC=/usr/include/varnish && \
|
||||
make && make install
|
||||
|
||||
COPY default.vcl /etc/varnish/default.vcl
|
||||
|
||||
EXPOSE 6081
|
||||
|
||||
CMD ["varnishd", "-F", "-f", "/etc/varnish/default.vcl", "-a", ":6081", "-s", "malloc,512m"]
|
||||
|
||||
Reference in New Issue
Block a user