feat: init taskfile, docker-compose, env
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
ARG POSTGRES_VER
|
||||
ARG GO_VER
|
||||
ARG ALPINE_VER
|
||||
|
||||
FROM postgres:${POSTGRES_VER} AS postgres
|
||||
|
||||
COPY ./db/* /docker-entrypoint-initdb.d/
|
||||
|
||||
RUN set -ex \
|
||||
&& chmod 1777 /tmp
|
||||
|
||||
FROM golang:${GO_VER}-alpine${ALPINE_VER} AS golang
|
||||
|
||||
ARG AIR_VER
|
||||
RUN set -ex \
|
||||
&& chmod 1777 /tmp \
|
||||
&& apk add --no-cache \
|
||||
git \
|
||||
tzdata \
|
||||
&& go install github.com/cosmtrek/air@v${AIR_VER}
|
Reference in New Issue
Block a user