mirror of
https://github.com/Lore09/Tesi-Magistrale.git
synced 2025-12-19 12:24:31 +00:00
two phase dockerfile
This commit is contained in:
12
wasm-container-runtime/Dockerfile
Normal file
12
wasm-container-runtime/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Build phase
|
||||||
|
FROM emscripten/emsdk AS build
|
||||||
|
RUN mkdir -p /build
|
||||||
|
WORKDIR /build
|
||||||
|
COPY src ./src
|
||||||
|
RUN emcc ./src/main.c -o ./main.wasm
|
||||||
|
RUN chmod a+x ./main.wasm
|
||||||
|
|
||||||
|
# Run phase
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/main.wasm /main.wasm
|
||||||
|
ENTRYPOINT [ "/main.wasm" ]
|
||||||
Reference in New Issue
Block a user