Skip to content

Commit

Permalink
added dockerfile for official builds (#288)
Browse files Browse the repository at this point in the history
Dockerfile includes fix for
ERR: libwasmvm.x86_64.so: cannot open shared object file: No such file or directory
when not running inside the same image as was built and
libgcc_s.so.1: cannot open shared object file: No such file or directory
a dependency that isn't available inside of distroless image.
https://github.com/GoogleContainerTools/distroless
  • Loading branch information
YBAAC authored Jan 20, 2023
1 parent b5607af commit 5316f82
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM golang:1.19.4 as build

WORKDIR /app

COPY . .

RUN make build

FROM gcr.io/distroless/base-debian11 as run

COPY --from=build /app/build/ixod /bin/ixod
COPY --from=build /go/pkg/mod/github.com/!cosm!wasm/[email protected]/internal/api/ /go/pkg/mod/github.com/!cosm!wasm/[email protected]/internal/api/
copy --from=build /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/x86_64-linux-gnu/libgcc_s.so.1

ENV HOME /ixo
WORKDIR $HOME

EXPOSE 26656
EXPOSE 26657
EXPOSE 1317
EXPOSE 9090
EXPOSE 26660

ENTRYPOINT [ "ixod" ]

0 comments on commit 5316f82

Please sign in to comment.