Skip to content

Instantly share code, notes, and snippets.

View Janosch's full-sized avatar
🦦
Working from home

Janosch Peters Janosch

🦦
Working from home
View GitHub Profile
FROM public.ecr.aws/docker/library/alpine:3.20 AS builder
# SHELL is currently needed as a workaround for a bug in alpine. See https://github.com/ofek/userpath/issues/60
ENV SHELL=/bin/sh
RUN apk add --no-cache python3 gcc python3-dev musl-dev linux-headers build-base libtool autoconf automake cmake \
make g++ gfortran openblas-dev swig py3-numpy-dev py3-setuptools openssh-client git
# Alpine does not ship FAISS and building 1.8.0 via pip fails, so we need to build a newer version from source
RUN mkdir -p /root/.ssh && ssh-keyscan github.com >> /root/.ssh/known_hosts
FROM public.ecr.aws/docker/library/alpine:3.20 AS builder
# SHELL is currently needed as a workaround for a bug in alpine. See https://github.com/ofek/userpath/issues/60
ENV SHELL=/bin/sh
RUN apk add --no-cache python3 gcc python3-dev musl-dev linux-headers build-base libtool autoconf automake cmake \
make g++ gfortran openblas-dev swig py3-numpy-dev py3-setuptools openssh-client git
# Alpine does not ship FAISS and building 1.8.0 via pip fails, so we need to build a newer version from source
RUN mkdir -p /root/.ssh && ssh-keyscan github.com >> /root/.ssh/known_hosts
FROM public.ecr.aws/docker/library/alpine:3.20 AS builder
# SHELL is currently needed as a workaround for a bug in alpine. See https://github.com/ofek/userpath/issues/60
ENV SHELL=/bin/sh
RUN apk add --no-cache python3 gcc python3-dev musl-dev linux-headers build-base libtool autoconf automake cmake \
make g++ gfortran openblas-dev swig py3-numpy-dev py3-setuptools openssh-client git
# Alpine does not ship FAISS and building 1.8.0 via pip fails, so we need to build a newer version from source
RUN mkdir -p /root/.ssh && ssh-keyscan github.com >> /root/.ssh/known_hosts