From 69715de4fe8e5364ce8b4e524a7e39e20fe98701 Mon Sep 17 00:00:00 2001 From: Valentin Kuznetsov Date: Wed, 17 Apr 2024 12:39:19 -0400 Subject: [PATCH] add static area to Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 06037ec..19f7008 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,13 +8,14 @@ WORKDIR $WDIR RUN mkdir /build RUN git clone https://github.com/CHESSComputing/$PROJECT ARG CGO_ENABLED=0 -RUN cd $PROJECT && make && cp srv /build +RUN cd $PROJECT && make && cp srv /build && cp -r static /build # build final image for given image FROM alpine as final # FROM gcr.io/distroless/static as final RUN mkdir -p /data COPY --from=go-builder /build/srv /data +COPY --from=go-builder /build/static /data LABEL org.opencontainers.image.description="FOXDEN MLHub service" LABEL org.opencontainers.image.source=https://github.com/chesscomputing/mlhub LABEL org.opencontainers.image.licenses=MIT