tmpchat / cmd / frontend / Dockerfile

@ 76a0f9bf1a6cf21c59015ed2f1b9b2664e5dec2f | 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"]