13 lines
253 B
Docker
13 lines
253 B
Docker
FROM golang:1.21 as builder
|
|
WORKDIR /go/src/app
|
|
COPY . .
|
|
RUN apt update && apt upgrade -y
|
|
RUN CGO_ENABLED=0 go build
|
|
|
|
FROM alpine:latest as final
|
|
WORKDIR /app
|
|
RUN mkdir -p /lib64
|
|
COPY --from=builder /go/src/app/tildewatch /app/
|
|
|
|
CMD ["/app/tildewatch"]
|