Initial commit - realms platform
This commit is contained in:
parent
c590ab6d18
commit
c717c3751c
234 changed files with 74103 additions and 15231 deletions
|
|
@ -5,10 +5,10 @@ WORKDIR /app
|
|||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
COPY bun.lockb* ./
|
||||
COPY bun.lock* ./
|
||||
|
||||
# Install dependencies with Bun
|
||||
RUN bun install --frozen-lockfile
|
||||
RUN bun install
|
||||
|
||||
# Copy source files
|
||||
COPY . .
|
||||
|
|
@ -18,6 +18,16 @@ ENV VITE_API_URL=http://localhost/api
|
|||
ENV VITE_WS_URL=ws://localhost/ws
|
||||
ENV VITE_STREAM_PORT=8088
|
||||
|
||||
# Nakama game server config
|
||||
ARG VITE_NAKAMA_SERVER_KEY=defaultkey
|
||||
ARG VITE_NAKAMA_HOST=localhost
|
||||
ARG VITE_NAKAMA_PORT=80
|
||||
ARG VITE_NAKAMA_USE_SSL=false
|
||||
ENV VITE_NAKAMA_SERVER_KEY=${VITE_NAKAMA_SERVER_KEY}
|
||||
ENV VITE_NAKAMA_HOST=${VITE_NAKAMA_HOST}
|
||||
ENV VITE_NAKAMA_PORT=${VITE_NAKAMA_PORT}
|
||||
ENV VITE_NAKAMA_USE_SSL=${VITE_NAKAMA_USE_SSL}
|
||||
|
||||
# Build the application
|
||||
RUN bun run build
|
||||
|
||||
|
|
@ -26,9 +36,10 @@ FROM oven/bun:1-alpine
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy built application
|
||||
# Copy built application and lockfile
|
||||
COPY --from=builder /app/build ./build
|
||||
COPY --from=builder /app/package*.json ./
|
||||
COPY --from=builder /app/bun.lock* ./
|
||||
|
||||
# Install production dependencies only
|
||||
RUN bun install --production
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue