mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
refactor: 🎨 Move Lysand-FE into its own repository
This commit is contained in:
commit
f6989707f4
26 changed files with 1226 additions and 0 deletions
29
Dockerfile
Normal file
29
Dockerfile
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
FROM oven/bun:1.1.3 AS base
|
||||
# Temporarily switch back to the non-alpine version of Bun because of Bun's issues with musl
|
||||
|
||||
# Install dependencies into temp directory
|
||||
# This will cache them and speed up future builds
|
||||
FROM base AS install
|
||||
RUN mkdir -p /temp/dev
|
||||
COPY package.json bun.lockb /temp/dev/
|
||||
RUN cd /temp/dev && bun install --frozen-lockfile
|
||||
|
||||
FROM base AS builder
|
||||
COPY . /app
|
||||
|
||||
COPY --from=install /temp/dev/node_modules /app/node_modules
|
||||
RUN cd /app && bun run build
|
||||
|
||||
FROM base as final
|
||||
|
||||
COPY --from=builder /app/.output/ /app
|
||||
|
||||
LABEL org.opencontainers.image.authors "Gaspard Wierzbinski (https://cpluspatch.com)"
|
||||
LABEL org.opencontainers.image.source "https://github.com/lysand-org/lysand-fe"
|
||||
LABEL org.opencontainers.image.vendor "Lysand Org"
|
||||
LABEL org.opencontainers.image.licenses "AGPL-3.0"
|
||||
LABEL org.opencontainers.image.title "Lysand-FE"
|
||||
LABEL org.opencontainers.image.description "Frontend for the Lysand Project"
|
||||
|
||||
WORKDIR /app/server
|
||||
CMD ["bun", "index.mjs"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue