summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 196715654491a7b535a5f8bc96cc430eeebcf5b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
FROM alpine as build
RUN apk add clang lld
COPY reduced_system_layer.c /usr/reduced_system_layer.c
RUN clang -D REDUCED_SYSTEM_LAYER_EXAMPLE --target=wasm32 -nostdlib -Wl,--no-entry,--allow-undefined -o /usr/index.wasm /usr/reduced_system_layer.c

FROM nginx:alpine
EXPOSE 80
COPY --from=build /usr/index.wasm /srv/index.wasm
COPY index.htm  /srv/index.htm
COPY nginx.conf /etc/nginx/nginx.conf
RUN ls -la /srv/
ENTRYPOINT [ "nginx" ]