Skip to content

Instantly share code, notes, and snippets.

@plutov
Last active April 23, 2020 11:26
Show Gist options
  • Save plutov/bb78a840a371e6e329e4ba3266b06d27 to your computer and use it in GitHub Desktop.
Save plutov/bb78a840a371e6e329e4ba3266b06d27 to your computer and use it in GitHub Desktop.
gcs-k8s-1
FROM golang:1.10.0-alpine AS gcsfuse
RUN apk add --no-cache git
ENV GOPATH /go
RUN go get -u github.com/googlecloudplatform/gcsfuse
FROM nginx:alpine
RUN apk add --no-cache ca-certificates fuse
COPY --from=gcsfuse /go/bin/gcsfuse /usr/local/bin
# Bucket files will be mounted here
RUN mkdir -p /usr/share/nginx/bucket-data
# Or any other port you use in nginx.cong
EXPOSE 3000
CMD ["nginx", "-g", "daemon off;"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment