Last active
April 23, 2020 11:26
-
-
Save plutov/bb78a840a371e6e329e4ba3266b06d27 to your computer and use it in GitHub Desktop.
gcs-k8s-1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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