15 lines
335 B
Docker
15 lines
335 B
Docker
FROM golang:1.22
|
|
|
|
WORKDIR /app
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
RUN go build -o /app/hatecomputers
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["/app/hatecomputers", "--server", "--migrate", "--port", "8080", "--template-path", "/app/templates", "--database-path", "/app/db/hatecomputers.db", "--static-path", "/app/static", "--scheduler"]
|