Port dev dockerfiles into stages

This commit is contained in:
sid palas
2023-02-21 16:18:47 -05:00
parent 7010a748e0
commit 3434051029
10 changed files with 148 additions and 41 deletions

View File

@ -1,18 +0,0 @@
# Using bullseye instead of alpine because debugger didnt work in alpine
FROM golang:1.19-bullseye
WORKDIR /app
# Install air for hot reload
RUN go install github.com/cosmtrek/air@latest
# Install delve for debugging
RUN go install github.com/go-delve/delve/cmd/dlv@latest
COPY go.mod go.sum ./
RUN go mod download
COPY . .
CMD ["air", "-c", ".air.toml"]