hatecomputers.club/Dockerfile

16 lines
461 B
Docker
Raw Normal View History

2024-03-25 14:08:35 -04:00
FROM golang:1.22
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
2024-03-26 18:00:05 -04:00
COPY . .
2024-03-25 14:08:35 -04:00
2024-10-14 22:36:32 -04:00
RUN go install -v
2024-03-25 14:08:35 -04:00
RUN go build -o /app/hatecomputers
EXPOSE 8080
2024-04-09 19:19:30 -04:00
CMD ["/app/hatecomputers", "--server", "--migrate", "--port", "8080", "--template-path", "/app/templates", "--database-path", "/app/db/hatecomputers.db", "--static-path", "/app/static", "--scheduler", "--dns", "--dns-port", "8053", "--dns-resolvers", "1.1.1.1:53,1.0.0.1:53", "--upload-path", "/app/uploads"]