File tree 3 files changed +18
-3
lines changed
3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change
1
+ FROM ubuntu:20.04
2
+
3
+ ARG package_args='--allow-downgrades --allow-remove-essential --allow-change-held-packages --no-install-recommends'
4
+ RUN echo "debconf debconf/frontend select noninteractive" | debconf-set-selections && \
5
+ export DEBIAN_FRONTEND=noninteractive && \
6
+ apt-get -y $package_args update && \
7
+ apt-get -y $package_args dist-upgrade && \
8
+ apt-get -y $package_args install curl ca-certificates gnupg tzdata golang git
9
+
10
+ WORKDIR /go/src/github.com/swisscom/backman
11
+ COPY . .
12
+ RUN go build -o backman
13
+
1
14
FROM ubuntu:20.04
2
15
LABEL maintainer=
"JamesClonk <[email protected] >"
3
16
@@ -29,10 +42,12 @@ RUN useradd -u 2000 -mU -s /bin/bash vcap && \
29
42
chown vcap:vcap /home/vcap/app
30
43
31
44
WORKDIR /home/vcap/app
32
- COPY backman ./
45
+ # COPY backman ./
33
46
COPY public ./public/
34
47
COPY static ./static/
48
+ COPY --from=0 /go/src/github.com/swisscom/backman/backman ./backman
35
49
50
+ RUN chmod +x /home/vcap/app/backman
36
51
RUN chown -R vcap:vcap /home/vcap/app
37
52
USER vcap
38
53
Original file line number Diff line number Diff line change 51
51
52
52
.PHONY : docker-build
53
53
# # docker-build: builds docker image
54
- docker-build : clean build
54
+ docker-build : clean
55
55
docker build -t jamesclonk/${APP} :${COMMIT_SHA} $$ PWD
56
56
57
57
.PHONY : docker-push
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ applications:
23
23
24
24
# ### push either as docker image
25
25
docker :
26
- image : jamesclonk/backman:1.23.0 # choose version from https://hub.docker.com/r/jamesclonk/backman/tags, or 'latest'
26
+ image : jamesclonk/backman:1.23.1 # choose version from https://hub.docker.com/r/jamesclonk/backman/tags, or 'latest'
27
27
# ### or as buildpack/src
28
28
# buildpacks:
29
29
# - https://github.com/cloudfoundry/apt-buildpack
You can’t perform that action at this time.
0 commit comments