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

Commitf05e405

Browse files
committed
Embed version info in docker build
1 parent73205b6 commitf05e405

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

‎.dockerignore‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
.git
21
client/dist
3-
client/node_modules
2+
client/node_modules

‎Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ RUN apk add --update git make build-base && \
66

77
WORKDIR /go/src/github.com/khlieng/dispatch
88
COPY . /go/src/github.com/khlieng/dispatch
9-
RUNgo build .
9+
RUNchmod +x install.sh && ./install.sh
1010

1111
# Runtime
1212
FROM alpine
1313

1414
RUN apk add --update ca-certificates && \
1515
rm -rf /var/cache/apk/*
1616

17-
COPY --from=build /go/src/github.com/khlieng/dispatch/dispatch /dispatch
17+
COPY --from=build /go/bin/dispatch /dispatch
1818

1919
EXPOSE 80/tcp
2020

‎install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/bin/sh -
22

33
Import="github.com/khlieng/dispatch/version"
44

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp