Skip to content

Commit

Permalink
feat: Base updated to 2.4.3 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
lholota committed Jun 26, 2020
1 parent 98d0ecd commit 9e538be
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions Dockerfile
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

Expand All @@ -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

0 comments on commit 9e538be

Please sign in to comment.