mirror of
https://github.com/GRFreire/nthmail.git
synced 2026-01-08 12:29:38 +00:00
16 lines
260 B
Docker
16 lines
260 B
Docker
FROM golang:1.23 as build
|
|
|
|
RUN apt-get update && apt-get upgrade -y
|
|
RUN apt-get install make sqlite3 -y
|
|
|
|
WORKDIR /app
|
|
ENV DB_PATH=/data/db.db
|
|
|
|
RUN go install github.com/a-h/templ/cmd/templ@latest
|
|
|
|
COPY . .
|
|
RUN go mod download
|
|
RUN make -B
|
|
|
|
CMD ["./bin/server"]
|