mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 04:21:15 +00:00
Slim down image
This commit is contained in:
parent
3c1ec5c111
commit
5f1e5f8541
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
@ -10,6 +10,8 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
publish-emscripten:
|
publish-emscripten:
|
||||||
name: Publish web port
|
name: Publish web port
|
||||||
|
env:
|
||||||
|
IMAGE_NAME: ${{ github.repository }}-emscripten
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|||||||
@ -27,12 +27,11 @@ RUN emcmake cmake -S . -B build -DISLE_BUILD_CONFIG=OFF -DISLE_DEBUG=OFF -DCMAKE
|
|||||||
emmake cmake --build build -j 32
|
emmake cmake --build build -j 32
|
||||||
|
|
||||||
RUN echo "Fetching isle.pizza frontend..."; \
|
RUN echo "Fetching isle.pizza frontend..."; \
|
||||||
git clone --depth 1 https://github.com/isledecomp/isle.pizza /tmp/isle.pizza && \
|
git clone --depth 1 https://github.com/isledecomp/isle.pizza /tmp/isle.pizza;
|
||||||
cp -r /tmp/isle.pizza/* /src/build/ && \
|
|
||||||
rm -rf /tmp/isle.pizza;
|
|
||||||
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
||||||
COPY docker/emscripten/nginx.conf /etc/nginx/nginx.conf
|
COPY docker/emscripten/nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY --from=builder /src/build /usr/share/nginx/html
|
COPY --from=builder /tmp/isle.pizza /usr/share/nginx/html
|
||||||
|
COPY --from=builder /src/build/isle.* /usr/share/nginx/html
|
||||||
EXPOSE 6931
|
EXPOSE 6931
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user