FROM golang:1.19 as builder
ENV GO111MODULE=on
RUN apt update && apt upgrade -y && \
apt install -y git \
make openssh-client
WORKDIR /app
RUN go install github.com/go-delve/delve/cmd/dlv@v1.9.1
RUN go install github.com/cosmtrek/air@v1.40.4
COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY . .
CMD ["air", "-c", ".air.toml"]
the postgres local tmp folder gets deleted everytime i stop the container, thus losing all the local data
air.toml
docker-compose.yml
local.Dockerfile
the postgres local
tmp
folder gets deleted everytime i stop the container, thus losing all the local data