Delete Dockerfile
Browse files- Dockerfile +0 -37
Dockerfile
DELETED
|
@@ -1,37 +0,0 @@
|
|
| 1 |
-
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:alpine as builder
|
| 2 |
-
|
| 3 |
-
ARG TARGETPLATFORM
|
| 4 |
-
ARG BUILDPLATFORM
|
| 5 |
-
ARG TARGETOS
|
| 6 |
-
ARG TARGETARCH
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
RUN apk update && apk add --no-cache git ca-certificates tzdata && update-ca-certificates
|
| 10 |
-
|
| 11 |
-
WORKDIR /app
|
| 12 |
-
|
| 13 |
-
# use modules
|
| 14 |
-
COPY go.mod .
|
| 15 |
-
|
| 16 |
-
ENV GO111MODULE=on
|
| 17 |
-
RUN go mod download && go mod verify
|
| 18 |
-
|
| 19 |
-
COPY . .
|
| 20 |
-
|
| 21 |
-
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
|
| 22 |
-
-ldflags='-w -s -extldflags "-static"' -a \
|
| 23 |
-
-o /app/teldrive .
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
FROM --platform=${TARGETPLATFORM:-linux/amd64} scratch
|
| 27 |
-
|
| 28 |
-
WORKDIR /app
|
| 29 |
-
|
| 30 |
-
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
|
| 31 |
-
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
| 32 |
-
|
| 33 |
-
COPY --from=builder /app/teldrive /app/teldrive
|
| 34 |
-
|
| 35 |
-
EXPOSE 8080
|
| 36 |
-
|
| 37 |
-
ENTRYPOINT ["/app/teldrive"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|