parent
e92f12f2b7
commit
0f03af5ebd
3 changed files with 2 additions and 3 deletions
|
|
@ -3,4 +3,3 @@
|
||||||
VERSION=${DRONE_BUILD_NUMBER}
|
VERSION=${DRONE_BUILD_NUMBER}
|
||||||
CGO_ENABLED=0 GOOS=linux go build -v -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o db db.go
|
CGO_ENABLED=0 GOOS=linux go build -v -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o db db.go
|
||||||
CGO_ENABLED=0 GOOS=linux go build -v -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o srv srv.go
|
CGO_ENABLED=0 GOOS=linux go build -v -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o srv srv.go
|
||||||
ls -lahR .
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
FROM alpine
|
FROM alpine
|
||||||
ADD db /db
|
ADD /go/src/db /db
|
||||||
RUN echo -e "root:x:0:0:root:/:\nappuser:x:1000:1000:appuser:/:" > /etc/passwd
|
RUN echo -e "root:x:0:0:root:/:\nappuser:x:1000:1000:appuser:/:" > /etc/passwd
|
||||||
RUN echo -e "root:x:0:root\nappuser:x:1000:" > /etc/group
|
RUN echo -e "root:x:0:root\nappuser:x:1000:" > /etc/group
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
FROM alpine
|
FROM alpine
|
||||||
ADD srv /srv
|
ADD /go/src/srv /srv
|
||||||
RUN echo -e "root:x:0:0:root:/:\nappuser:x:1000:1000:appuser:/:" > /etc/passwd
|
RUN echo -e "root:x:0:0:root:/:\nappuser:x:1000:1000:appuser:/:" > /etc/passwd
|
||||||
RUN echo -e "root:x:0:root\nappuser:x:1000:" > /etc/group
|
RUN echo -e "root:x:0:root\nappuser:x:1000:" > /etc/group
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue