tmpchat / cmd / frontend / Dockerfile

@ 57cd687b81d1640c584c2673280ec456a5463380 | 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"]