Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Cleaned up dockerfile, consolidated apt-get and switched from curl to ADD

Jason Bosco3cded7207ad4
diff --git a/docker/ubuntu-10-04-gcc.Dockerfile b/docker/ubuntu-10-04-gcc.Dockerfile
index 3080c464..0ad803a4 100644
--- a/docker/ubuntu-10-04-gcc.Dockerfile
+++ b/docker/ubuntu-10-04-gcc.Dockerfile
@@ -1,18 +1,26 @@
+# $ docker build --file $PROJECT_DIR/docker/ubuntu-10-04-gcc.Dockerfile --tag typesense/ubuntu-10.04-gcc:latest --tag typesense/ubuntu-10.04-gcc:6.5 $PROJECT_DIR/docker
+#
# NOTE: Default build image is bloated. Before publishing, export from a container to squash the image:
-# $ docker run -it typesense/ubuntu-10-04-gcc:6.4.0 bash -c "exit"
+# $ docker run -it typesense/ubuntu-10.04-gcc:latest bash -c "exit"
# $ docker ps -a | grep typesense
-# $ docker export <container_id> | docker import - typesense/ubuntu-10-04-gcc:6.4.0
+# $ docker export <container_id> | docker import - typesense/ubuntu-10.04-gcc:latest
+#
FROM ubuntu:10.04
RUN sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
-RUN apt-get update
-RUN apt-get install -y build-essential
+RUN apt-get update && apt-get install -y \
+ build-essential \
+ tar \
+ curl \
+ libmpfr-dev \
+ libgmp3-dev \
+ libmpc-dev \
+ flex \
+ bison \
+ zlib1g-dev
-RUN apt-get -y install curl tar
-RUN apt-get -y install libmpfr-dev libgmp3-dev libmpc-dev flex bison zlib1g-dev
-
-RUN curl -o /opt/gcc-6.4.0.tar.gz -L http://ftp.gnu.org/gnu/gcc/gcc-6.4.0/gcc-6.4.0.tar.gz
+ADD https://ftp.gnu.org/gnu/gcc/gcc-6.4.0/gcc-6.4.0.tar.gz /opt/
RUN tar -C /opt -xf /opt/gcc-6.4.0.tar.gz
RUN mkdir /opt/gcc-6.4.0/build && cd /opt/gcc-6.4.0/build && ../configure --disable-checking --enable-languages=c,c++ \