Skip to content

Commit

Permalink
Merge pull request #78 from supabase-community/upgrade-202311
Browse files Browse the repository at this point in the history
chore: kong base image
  • Loading branch information
mats16 authored Nov 17, 2023
2 parents 31aa697 + 55fa60b commit 6036609
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions containers/kong/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM --platform=linux/amd64 public.ecr.aws/docker/library/kong:3.1.1-alpine AS build
FROM public.ecr.aws/docker/library/kong:3.5.0 AS build

ARG TARGETPLATFORM
ENV ENVSUBST_VERSION=v1.4.2

USER root

RUN apk update && apk add curl
RUN apt-get update && apt-get install -y curl

RUN case ${TARGETPLATFORM} in \
"linux/amd64") ENVSUBST_ARCH=Linux-x86_64 ;; \
Expand All @@ -14,7 +14,9 @@ RUN case ${TARGETPLATFORM} in \
&& curl -L https://github.com/a8m/envsubst/releases/download/${ENVSUBST_VERSION}/envsubst-${ENVSUBST_ARCH} -o /tmp/envsubst \
&& chmod +x /tmp/envsubst

FROM public.ecr.aws/docker/library/kong:3.1.1-alpine
FROM public.ecr.aws/docker/library/kong:3.5.0

WORKDIR /home/kong

COPY --from=build /tmp/envsubst /usr/local/bin/envsubst
COPY ./kong-template.yml /home/kong/tmp.yml
Expand Down

0 comments on commit 6036609

Please sign in to comment.