Tesla/Dockerfile

15 lines
202 B
Docker
Raw Normal View History

2023-06-05 13:41:48 +00:00
FROM golang:alpine
# Set destination for COPY
WORKDIR /app
# Download Go modules
COPY . /app
RUN go mod download
# Build
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/tesla
# Run
CMD ["/app/tesla"]