generated from homecentr/docker-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM golang:1.14.1-alpine as build | ||
FROM golang:1.14.4-alpine as build | ||
|
||
RUN apk add --no-cache git=2.24.1-r0 | ||
RUN apk add --no-cache git=2.26.2-r0 | ||
|
||
COPY ./src /go/src/github.com/homecentr/docker-swarm-local-network-connector | ||
|
||
|
@@ -9,24 +9,13 @@ WORKDIR /go/src/github.com/homecentr/docker-swarm-local-network-connector | |
RUN go get ./... && \ | ||
go build | ||
|
||
FROM homecentr/base:1.1.0 as base | ||
|
||
LABEL maintainer="Lukas Holota <[email protected]>" | ||
|
||
FROM alpine:3.11.5 | ||
|
||
# Install packages required by base | ||
RUN apk add --no-cache \ | ||
shadow=4.7-r1 | ||
FROM homecentr/base:2.4.3-alpine | ||
|
||
# Copy S6 overlay | ||
COPY --from=base / / | ||
COPY --from=build /go/src/github.com/homecentr/docker-swarm-local-network-connector/docker-swarm-local-network-connector /swarm-local-network-connector | ||
|
||
# Copy S6 overlay configuration | ||
COPY ./fs/ / | ||
|
||
# Make the binary executable | ||
RUN chmod a+x /swarm-local-network-connector | ||
|
||
ENTRYPOINT [ "/init" ] | ||
RUN chmod a+x /swarm-local-network-connector |