yw5ncom/Dockerfile
ange 08557f45db
All checks were successful
/ deploy (push) Successful in 46s
feat: linkedin
2024-12-21 11:13:23 +00:00

16 lines
275 B
Docker

FROM docker.io/golang:1.23 AS build
WORKDIR /build/
COPY go.mod go.sum .
RUN go mod download
COPY src/ .
RUN CGO_ENABLED=0 go build -o /app
FROM scratch
COPY --from=build /app .
COPY html/ html/
COPY css/ css/
COPY static/ static/
COPY tmpl/ tmpl/
EXPOSE 3000
CMD ["./app"]