diff options
| author | Matthew Horan <[email protected]> | 2022-12-21 17:11:31 +0100 |
|---|---|---|
| committer | Jennifer Rakoczy <[email protected]> | 2024-11-23 21:19:11 -0500 |
| commit | b9b916e18c16b42434f34af3be6ff10ffa8c6aa4 (patch) | |
| tree | 152ff56bbc4fc3497cdda5522251c1a50da93c5d /Dockerfile | |
| parent | 6c694954518afd4373d38cfd26d3196023c542d9 (diff) | |
Update to Go 1.19 and build with Buildpacks
This is a bit of a mess at the moment, but that's because Google is
running a very old version of pack. Once they update that then the
deploy should work without the cloudbuild.yaml.
Signed-off-by: Jennifer Rakoczy <[email protected]>
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 675759f..0000000 --- a/Dockerfile +++ /dev/null @@ -1,34 +0,0 @@ -FROM marketplace.gcr.io/google/debian11 AS build - -#ENV BUILD_DEPS 'curl git gcc patch libc6-dev ca-certificates build-essential pkg-config' -ENV BUILD_DEPS 'ca-certificates git curl' -RUN apt-get update && apt-get install -y ${BUILD_DEPS} --no-install-recommends - -ENV GOPATH=/go -ENV GOROOT_BOOTSTRAP=/usr/local/go-bootstrap -RUN curl -sSL https://dl.google.com/go/go1.17.6.linux-amd64.tar.gz -o /tmp/go.tar.gz -RUN mkdir -p $GOROOT_BOOTSTRAP -RUN tar --strip=1 -C $GOROOT_BOOTSTRAP -xzf /tmp/go.tar.gz -#RUN $GOROOT_BOOTSTRAP/bin/go install golang.org/dl/gotip@latest -#RUN /go/bin/gotip download - -RUN mkdir -p /workdir -WORKDIR /workdir - -COPY go.mod /workdir -COPY go.sum /workdir -RUN $GOROOT_BOOTSTRAP/bin/go mod download - -COPY . /workdir -RUN $GOROOT_BOOTSTRAP/bin/go build -o /workdir/server ./cmd/server - -FROM marketplace.gcr.io/google/debian11 AS run - -RUN apt-get update && apt-get install -y --no-install-recommends exiftool tini - -ENV PORT=8080 - -COPY --from=build /workdir/server /app/server -RUN mkdir -p /app - -ENTRYPOINT /app/server |
