chore: added dockerfile

This commit is contained in:
John Yeo
2025-11-21 23:03:19 +00:00
parent 304a0ec258
commit a66121f4f7

26
docker/Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
WORKDIR /app
# Install Node.js to fix Bun bug with msgpackr-extract postinstall scripts
RUN apt-get update && apt-get install -y nodejs npm && rm -rf /var/lib/apt/lists/*
# Copy root package files
COPY package.json .
COPY bun.lock .
# Copy workspace package.json files
COPY server/package.json ./server/package.json
COPY shared/package.json ./shared/package.json
COPY vite/package.json ./vite/package.json
COPY scripts/package.json ./scripts/package.json
# Install dependencies
RUN bun install
# Copy rest of the code
COPY . .
ENV NODE_ENV=production
EXPOSE 8080
WORKDIR /app/server
CMD ["bun", "start"]