ca1e98ad94
* Optimize `memgraph/memgraph-builder` (on Dockerhub) image size * Optimize `mgbuild_{{ os }}` (under CI) image size
16 lines
569 B
Docker
16 lines
569 B
Docker
FROM amazonlinux:2
|
|
|
|
ARG TOOLCHAIN_VERSION
|
|
|
|
RUN yum -y update \
|
|
&& yum install -y wget git tar
|
|
# Do NOT be smart here and clean the cache because the container is used in the
|
|
# stateful context.
|
|
|
|
RUN wget -q https://s3-eu-west-1.amazonaws.com/deps.memgraph.io/${TOOLCHAIN_VERSION}/${TOOLCHAIN_VERSION}-binaries-amzn-2-x86_64.tar.gz \
|
|
-O ${TOOLCHAIN_VERSION}-binaries-amzn-2-x86_64.tar.gz \
|
|
&& tar xzvf ${TOOLCHAIN_VERSION}-binaries-amzn-2-x86_64.tar.gz -C /opt \
|
|
&& rm ${TOOLCHAIN_VERSION}-binaries-amzn-2-x86_64.tar.gz
|
|
|
|
ENTRYPOINT ["sleep", "infinity"]
|