Skip to content

Commit

Permalink
fix: echo
Browse files Browse the repository at this point in the history
  • Loading branch information
LeKovr committed Nov 14, 2021
1 parent fce268f commit 93431a0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
ARG GOLANG_VERSION
ARG TARGETARCH

# FROM golang:$GOLANG_VERSION as builder
FROM ghcr.io/dopos/golang-alpine:v1.16.10-alpine3.14.2 as builder
ARG TARGETARCH

WORKDIR /opt/app

# Cached layer
COPY ./go.mod ./go.sum ./

RUN echo "Build for arch $TARGETARCH"

# Sources dependent layer
COPY ./ ./
RUN CGO_ENABLED=0 go test -tags test -covermode=atomic -coverprofile=coverage.out ./...
RUN CGO_ENABLED=0 go build -ldflags "-X main.version=`git describe --tags --always`" -a ./cmd/webtail

FROM scratch
ARG TARGETARCH

MAINTAINER Alexey Kovrizhkin <[email protected]>
LABEL org.opencontainers.image.description "Tail [log]files via web[sockets]"

RUN echo "Build for arch $TARGETARCH"

VOLUME /data
WORKDIR /
COPY --from=builder /opt/app/webtail .
Expand Down

0 comments on commit 93431a0

Please sign in to comment.