nthmail/Dockerfile
Guilherme Rugai Freire a4efa6a35f
add dockerfile
2024-07-10 22:15:18 -03:00

16 lines
260 B
Docker

FROM golang:1.22 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"]