@@ -27,6 +27,15 @@ RUN groupadd supertokens && useradd -m -s /bin/bash -g supertokens supertokens
2727RUN apt-get update && apt-get install -y --no-install-recommends gnupg dirmngr curl && rm -rf /var/lib/apt/lists/*
2828RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
2929ENV GOSU_VERSION=1.7
30+
31+ # install fresh libsqlite3
32+ RUN apt-get install alien
33+ RUN wget -O libsqlite3.rpm https://download.opensuse.org/repositories/openSUSE:/Factory/standard/x86_64/libsqlite3-0-3.50.3-1.1.x86_64.rpm
34+ RUN alien -d libsqlite3.rpm
35+ RUN dpkg -i libsqlite3.dpkg
36+ RUN apt --fix-broken install
37+ RUN rm libsqlite3.rpm
38+
3039RUN set -x \
3140 && apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* \
3241 && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
@@ -39,13 +48,8 @@ RUN set -x \
3948 && chmod +x /usr/local/bin/gosu \
4049 && apt-get purge -y --auto-remove wget
4150
42- # install fresh libsqlite3
43- RUN apt-get install alien
44- RUN wget -O libsqlite3.rpm https://download.opensuse.org/repositories/openSUSE:/Factory/standard/x86_64/libsqlite3-0-3.50.3-1.1.x86_64.rpm
45- RUN alien -d libsqlite3.rpm
46- RUN dpkg -i libsqlite3.dpkg
47- RUN sudo apt --fix-broken install
48- RUN rm libsqlite3.rpm
51+
52+
4953COPY --from=tmp --chown=supertokens /usr/lib/supertokens /usr/lib/supertokens
5054COPY --from=tmp --chown=supertokens /usr/bin/supertokens /usr/bin/supertokens
5155COPY ./supertokens-postgresql-plugin/.github/helpers/docker/docker-entrypoint.sh /usr/local/bin/
0 commit comments