First bits of pure lustre-javascript for user login session
This commit is contained in:
parent
a1e4eb1dff
commit
e6851255dc
41 changed files with 8413 additions and 733 deletions
14
Dockerfile
14
Dockerfile
|
|
@ -1,23 +1,23 @@
|
|||
ARG GLEAM_VERSION=v1.12.0
|
||||
ARG GLEAM_VERSION=v1.15.0
|
||||
# Build stage - compile the application
|
||||
FROM ghcr.io/gleam-lang/gleam:${GLEAM_VERSION}-erlang-alpine AS builder
|
||||
|
||||
# Add project code
|
||||
COPY ./priv /quizterm/priv
|
||||
COPY ./src /quizterm/src
|
||||
COPY ./gleam.toml /quizterm/
|
||||
COPY ./server/priv /quizterm/server/priv
|
||||
COPY ./server/src /quizterm/server/src
|
||||
COPY ./server/gleam.toml /quizterm/server/
|
||||
|
||||
RUN cd /quizterm && gleam deps download
|
||||
RUN cd /quizterm/server && gleam deps download
|
||||
|
||||
# Compile the server code
|
||||
RUN cd /quizterm \
|
||||
RUN cd /quizterm/server \
|
||||
&& gleam export erlang-shipment
|
||||
|
||||
# Runtime stage - slim image with only what's needed to run
|
||||
FROM ghcr.io/gleam-lang/gleam:${GLEAM_VERSION}-erlang-alpine
|
||||
|
||||
# Copy the compiled server code from the builder stage
|
||||
COPY --from=builder /quizterm/build/erlang-shipment /app
|
||||
COPY --from=builder /quizterm/server/build/erlang-shipment /app
|
||||
|
||||
# Set up the entrypoint
|
||||
WORKDIR /app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue