Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions sol/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# syntax=docker/dockerfile:1
# escape=\
FROM blinknlights/sol-compiler:latest AS sol-compiler

COPY ./files/hello-world.sl /build/hello-world.sl
RUN mkdir -p /build/sol/core && cp -r /usr/local/lib/sol/core/* /build/sol/core/
RUN cd /build && sol -o /build/hello hello-world.sl

FROM 100hellos/000-base:local

RUN sudo apk add --no-cache gcc musl-dev

COPY --from=sol-compiler /usr/local/bin/sol /usr/local/bin/sol
COPY --from=sol-compiler /usr/local/lib/libsol_runtime.a /usr/local/lib/libsol_runtime.a
COPY --from=sol-compiler /usr/local/lib/sol /usr/local/lib/sol
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
COPY --from=sol-compiler /usr/local/lib/sol /usr/local/lib/sol

COPY --from=sol-compiler /build/hello /hello-world/hello

COPY --chown=human:human ./files /hello-world
RUN ln -sf /usr/local/lib/sol /hello-world/sol

COPY --chown=human:human ./fraglet /
ENTRYPOINT [ "/fraglet-entrypoint" ]
1 change: 1 addition & 0 deletions sol/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../Makefile.language-container.mk
Loading