tmpchat / cmd / frontend / Dockerfile

@ 3797ec25a55762f2aa49e7f479d306cef67a6882 | 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"]