Skip to content

Commit

Permalink
add static area to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Apr 17, 2024
1 parent a9a7d34 commit 69715de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 69715de

Please sign in to comment.