Removed comments in Dockerfile, v2tec → kopfkrieg

This commit is contained in:
KopfKrieg 2019-01-27 18:54:05 +01:00
parent 66c768d821
commit 45bb2f97fc
5 changed files with 31 additions and 45 deletions

View file

@ -1,26 +1,7 @@
##
## Alpine image to get some needed data
# Build
##
#FROM alpine:latest as alpine
#RUN apk add --no-cache \
# ca-certificates \
# tzdata
#
##
## Image
##
#FROM scratch
#LABEL "com.centurylinklabs.watchtower"="true"
#
## copy files from other containers
#COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
#COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo
#
#COPY watchtower /
#ENTRYPOINT ["/watchtower"]
# build stage
FROM golang:alpine AS build-env
FROM golang:alpine as build-env
RUN apk add --no-cache openssh-client git curl
@ -37,7 +18,9 @@ RUN glide install
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o watchtower .
# RUN go build -o watchtower .
# final stage
##
# Watchtower
##
FROM alpine
LABEL "com.centurylinklabs.watchtower"="true"