Skip to content

Commit 452bed2

Browse files
Tristramgflomonster
authored andcommitted
editoast: fix glyph generation on docker on mac-arm
Signed-off-by: Tristram Gräbener <tristram+git@tristramg.eu> Signed-off-by: Florian Amsallem <florian.amsallem@gmail.com>
1 parent 8ebfe52 commit 452bed2

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

editoast/Dockerfile

+6-7
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,16 @@ FROM chef AS base_builder
1818
RUN apk add --no-cache build-base openssl openssl-dev openssl-libs-static mold libpq-dev geos-dev
1919
ENV RUSTFLAGS="-C target-feature=-crt-static -C link-arg=-fuse-ld=mold"
2020
RUN cargo install diesel_cli --no-default-features --features postgres
21-
COPY --from=static_assets . /assets
21+
COPY --from=static_assets . /assets
2222

2323
#######################
2424
# Build assets #
2525
#######################
26-
FROM ubuntu:latest AS editoast_assets
27-
RUN apt update && apt install --yes wget
28-
RUN wget https://github.com/flother/spreet/releases/download/v0.11.0/spreet-x86_64-unknown-linux-musl.tar.gz
29-
RUN tar xvf spreet-x86_64-unknown-linux-musl.tar.gz --directory /usr/bin
30-
RUN wget http://github.com/stadiamaps/sdf_font_tools/releases/download/cli-v1.4.2/build_pbf_glyphs.x86_64-unknown-linux-gnu -O /usr/bin/build_pbf_glyphs
31-
RUN chmod +x /usr/bin/build_pbf_glyphs
26+
FROM chef AS editoast_assets
27+
# build_pbf_glyphs requires a c++ compiler
28+
RUN apk --no-cache add build-base
29+
RUN cargo install spreet
30+
RUN cargo install build_pbf_glyphs
3231
COPY ./assets /assets
3332
RUN /assets/sprites/generate-atlas.sh
3433
RUN /assets/fonts/generate-glyphs.sh

0 commit comments

Comments
 (0)