mirror of
https://github.com/Lore09/Tesi-Magistrale.git
synced 2025-12-19 12:24:31 +00:00
12 lines
258 B
Docker
12 lines
258 B
Docker
# 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" ] |