godash/docker/Dockerfile.dev

17 lines
269 B
Text
Raw Normal View History

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
# 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