2023-06-14 21:53:27 +02:00
|
|
|
ARG GOLANG_VERSION
|
|
|
|
FROM golang:${GOLANG_VERSION}-alpine
|
2023-06-16 13:19:10 +02:00
|
|
|
RUN apk add tzdata
|
2023-06-14 21:53:27 +02:00
|
|
|
|
|
|
|
# GoDash
|
2023-06-16 13:19:10 +02:00
|
|
|
WORKDIR /app
|
|
|
|
COPY ./go.mod .
|
|
|
|
COPY ./go.sum .
|
2023-06-14 21:53:27 +02:00
|
|
|
RUN go mod download
|
|
|
|
|
|
|
|
# Air
|
|
|
|
RUN go install github.com/cosmtrek/air@latest
|
2023-06-16 13:34:16 +02:00
|
|
|
COPY ./.air.toml .
|
2023-06-14 21:53:27 +02:00
|
|
|
|
|
|
|
# Envs
|
2023-06-16 13:19:10 +02:00
|
|
|
ENV VERSION=v0.0.1-dev
|
2023-06-14 21:53:27 +02:00
|
|
|
ENV BUILDTIME=2023-04-05T20:48:07Z
|