aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: c753c9ea7780bb990a5bc5f8cab491ef146694f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM ghcr.io/gleam-lang/gleam:v1.2.0-erlang-alpine as builder

WORKDIR /mayu/

COPY src/ /mayu/src/
COPY themes/ /mayu/themes/
COPY gleam.toml /mayu/
COPY manifest.toml /mayu/

RUN apk add --no-cache build-base

RUN gleam build \
  && cd build/ \
  && gleam export erlang-shipment

FROM ghcr.io/gleam-lang/gleam:v1.2.0-erlang-alpine

COPY --from=builder /mayu/build/erlang-shipment/ /mayu/erlang-shipment/
COPY --from=builder /mayu/themes /mayu/themes/

WORKDIR /mayu/

ENTRYPOINT ["./erlang-shipment/entrypoint.sh"]

CMD ["run"]