21 lines
408 B
Docker
21 lines
408 B
Docker
ARG POSTGRES_VER
|
|
ARG GO_VER
|
|
ARG ALPINE_VER
|
|
|
|
FROM postgres:${POSTGRES_VER} AS postgres
|
|
|
|
COPY ./string-unpack/internal/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}
|