mirror of
https://github.com/containrrr/watchtower.git
synced 2026-01-29 20:26:10 +01:00
Removed comments in Dockerfile, v2tec → kopfkrieg
This commit is contained in:
parent
66c768d821
commit
45bb2f97fc
5 changed files with 31 additions and 45 deletions
27
Dockerfile
27
Dockerfile
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue