tmpchat / cmd / frontend / Dockerfile

@ a74e624cf11c6f6c867ae0ee08c7a55b84623853 | history


FROM golang:1.17-alpine as builder
WORKDIR /app
COPY . .
RUN go build -o bin/tmpchat_frontend cmd/frontend/*.go

FROM alpine
COPY --from=builder /app/bin/tmpchat_frontend /
COPY --from=builder /app/cmd/frontend/templates /templates
CMD ["/tmpchat_frontend"]