Skip to content

Commit 0d57ea3

Browse files
ItalyPaleAlesuntong
authored andcommitted
Updated Dockerfile (h2non#384)
1. Changed base image to bullseye 2. The updated base image contains an updated version of libjemalloc too, so building from source is no longer necessary 3. Updated libvips version too
1 parent 3c6d782 commit 0d57ea3

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Dockerfile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG GOLANG_VERSION=1.17
2-
FROM golang:${GOLANG_VERSION}-buster as builder
2+
FROM golang:${GOLANG_VERSION}-bullseye as builder
33

44
ARG IMAGINARY_VERSION=dev
55
ARG LIBVIPS_VERSION=8.12.2
@@ -89,15 +89,6 @@ RUN DEBIAN_FRONTEND=noninteractive \
8989
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
9090
ENV LD_PRELOAD=/usr/local/lib/libjemalloc.so
9191

92-
ADD https://github.com/jemalloc/jemalloc/releases/download/5.2.1/jemalloc-5.2.1.tar.bz2 /tmp/jemalloc-5.2.1.tar.bz2
93-
RUN apt-get update && apt install -y bzip2 gcc make autoconf
94-
RUN cd /tmp \
95-
&& tar -jxvf jemalloc-5.2.1.tar.bz2 --no-same-owner \
96-
&& cd jemalloc-5.2.1 \
97-
&& ./configure --enable-prof && make && make install \
98-
&& rm -rf /tmp/*
99-
ENV LD_PRELOAD=/usr/local/lib/libjemalloc.so
100-
10192
# Server port to listen
10293
ENV PORT 9000
10394

0 commit comments

Comments
 (0)