mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-06 02:36:49 +00:00
19 lines
296 B
Docker
19 lines
296 B
Docker
FROM golang:1.22-alpine
|
|
|
|
RUN apk update && apk add --no-cache \
|
|
build-base
|
|
|
|
WORKDIR /app
|
|
|
|
RUN go install github.com/air-verse/air@latest
|
|
RUN go install github.com/a-h/templ/cmd/templ@latest
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD [ "air", "-c", ".air.toml" ]
|
|
|