Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit51418a5

Browse files
committed
feat(pack): add ghcr.io/cage1016/ak:0.1.0
1 parent0925b6f commit51418a5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

‎Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ endif
3131
release:## release
3232
goreleaser release --skip-publish --rm-dist
3333

34+
.PHONY: run-image
35+
run-image:## pack build
36+
docker build -t ghcr.io/cage1016/ak-run-image:0.1.0 -f run.Dockerfile.
37+
docker push ghcr.io/cage1016/ak-run-image:0.1.0
38+
39+
.PHONY: build
40+
build: generate## Build container image
41+
pack build ghcr.io/cage1016/ak:0.1.0 --builder gcr.io/buildpacks/builder:v1 --run-image ghcr.io/cage1016/ak-run-image:0.1.0 --env GOOGLE_RUNTIME_VERSION=1.20
42+
# docker push ghcr.io/cage1016/ak:0.1.0
43+
3444
.PHONY: help
3545
help:## this help
3646
@awk'BEGIN {FS = ":.*?## "} /^[a-zA-Z_0-9-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'$(MAKEFILE_LIST)| sort

‎run.Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM gcr.io/buildpacks/gcp/run
2+
USER root
3+
RUN apt-get update && apt-get install -y --no-install-recommends \
4+
zip && \
5+
apt-get clean && \
6+
rm -rf /var/lib/apt/lists/*
7+
USER cnb

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp