Skip to content

Commit

Permalink
auto docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
regnaio committed Jan 30, 2021
1 parent 2c32283 commit 3b6ffe0
Show file tree
Hide file tree
Showing 7 changed files with 1,282 additions and 887 deletions.
33 changes: 24 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
FROM trzeci/emscripten
ENV PYTHONUNBUFFERED 1
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libgeos-dev ed \
automake autoconf libtool \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir code
WORKDIR /code
FROM emscripten/emsdk

WORKDIR /src

COPY . .

RUN cmake -B builds -DCLOSURE=1 -DTOTAL_MEMORY=134217728

RUN cmake --build builds

# Prevent docker run from immediately exiting
CMD ["tail", "-f", "/dev/null"]

# Build image by running: docker build -t ammo .

# Run container by running: docker run -d --name ammo-container ammo

# Retrieve build files by running: docker cp ammo-container:/src/builds <host-path>

# Example: docker cp ammo-container:/src/builds /c/dev/fork

# docker stop ammo-container

# docker rm ammo-container
9 changes: 9 additions & 0 deletions Dockerfilex
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM trzeci/emscripten
ENV PYTHONUNBUFFERED 1
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libgeos-dev ed \
automake autoconf libtool \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir code
WORKDIR /code
888 changes: 444 additions & 444 deletions builds/ammo.js

Large diffs are not rendered by default.

864 changes: 432 additions & 432 deletions builds/ammo.wasm.js

Large diffs are not rendered by default.

Binary file modified builds/ammo.wasm.wasm
Binary file not shown.
Loading

0 comments on commit 3b6ffe0

Please sign in to comment.