-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Guillaume Hivert <hivert.is.coming@gmail.com>
- Loading branch information
Showing
2 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
FROM --platform=x86_64 ghcr.io/gleam-lang/gleam:v1.1.0-erlang-alpine AS builder | ||
|
||
RUN mkdir -p /build/backend/src | ||
COPY apps/backend/gleam.toml /build/backend | ||
COPY apps/backend/manifest.toml /build/backend | ||
COPY apps/backend/src /build/backend/src | ||
COPY packages /packages | ||
|
||
RUN apk add ca-certificates | ||
RUN cd /build/backend && gleam build | ||
RUN cd /build/backend && gleam export erlang-shipment | ||
|
||
FROM --platform=x86_64 ghcr.io/gleam-lang/gleam:v1.1.0-erlang-alpine as runner | ||
LABEL org.opencontainers.image.source https://github.com/ghivert/gloogle | ||
|
||
WORKDIR /app | ||
|
||
RUN apk add ca-certificates inotify-tools | ||
COPY --from=builder /build/backend/build/erlang-shipment . | ||
ENTRYPOINT ["/app/entrypoint.sh"] | ||
CMD ["run"] |
This file was deleted.
Oops, something went wrong.