This repository has been archived on 2022-05-25. You can view files and clone it, but cannot push or open issues or pull requests.
elon-eats-my-tweets/Dockerfile

17 lines
250 B
Docker
Raw Normal View History

2022-05-19 19:51:12 +00:00
FROM golang:1.18-alpine3.15 as go-builder
ENV GOPATH ""
RUN apk add git
WORKDIR /app
ADD go.mod go.sum ./
RUN go mod download
ADD ./ .
RUN go build -o ./elon .
FROM alpine:3.14
COPY --from=go-builder /app/elon /app/elon
ENTRYPOINT ["/app/elon"]