Comments (2)
My colleague pointed me to Distroless.
I'm going to try that out as it appears to be my solution.
https://github.com/GoogleCloudPlatform/distroless
from golang-samples.
Distroless worked!
Dockerfile.distroless
FROM golang:1.8 as build
WORKDIR /go/src/app
COPY pubsub.go .
RUN go-wrapper download # "go get -d -v ./..."
RUN go-wrapper install
FROM gcr.io/distroless/base
COPY --from=build /go/bin/app /
CMD ["/app"]
build and run as before:
2017/11/27 17:32:06 Topic '$PUB' exists no need to recreate
2017/11/27 17:32:06 Message ID: 175919015426938
from golang-samples.
Related Issues (20)
- dlp/snippets/deid: TestReidFPE failed HOT 1
- run/testing: TestImageProcessingService failed HOT 1
- pubsub/topics: TestCreate failed HOT 1
- asset/quickstart/search-all-resources: TestMain failed HOT 1
- storagetransfer: TestGetLatestTransferOperation failed HOT 2
- storage/objects: TestKMSObjects failed HOT 2
- dlp/snippets/inspect: TestInspectImageFileAllInfoTypes failed HOT 1
- dlp/snippets/jobs: TestCreateJob failed HOT 1
- Adopt grouping for security updates HOT 1
- go1.19 no longer supported
- media/videostitcher: TestDeleteLiveConfig failed HOT 1
- datacatalog/datacatalog_quickstart: TestApp failed HOT 1
- storage/objects: TestObjectBucketLock failed HOT 2
- spanner/spanner_snippets/spanner: TestForeignKeyDeleteCascadeSample failed HOT 1
- vision/detect: TestDetect failed HOT 1
- dlp/snippets/redact: TestRedactImageFileListedInfoTypes failed HOT 1
- vertexai/function-calling: Test_functionCalls failed HOT 1
- vertexai/function-calling: Test_functionCallsChat failed HOT 2
- spanner/spanner_snippets/spanner: TestPgPartitionedDml failed HOT 1
- run/testing: TestCloudRunJobs failed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from golang-samples.