feat: init taskfile, docker-compose, env

This commit is contained in:
2024-05-08 18:39:29 +03:00
parent 6a743cf5c4
commit 55719b4399
8 changed files with 383 additions and 0 deletions

20
Dockerfile Normal file
View 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}