Include template in Dockerfile

This commit is contained in:
Torjus Håkestad 2021-09-14 23:27:26 +02:00
parent 98adb226d7
commit bc02653473

View File

@ -8,8 +8,9 @@ RUN CGO_ENABLED=0 go build -o dogtamer cmd/dogtamer.go
FROM alpine:latest FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/dogtamer /app/dogtamer COPY --from=builder /app/dogtamer /app/dogtamer
COPY --from=builder /app/server/templates /app/server/templates
WORKDIR /app
EXPOSE 5566 EXPOSE 5566
EXPOSE 8077 EXPOSE 8077
CMD ["/app/dogtamer", "serve"] CMD ["/app/dogtamer", "serve"]