osw-studio / Dockerfile
otst's picture
react runtime support, esbuild bundling, runtime badges, project settings modal, template additions, bug fixes
405f2d4
FROM node:20-alpine
ENV NODE_ENV=production \
NEXT_TELEMETRY_DISABLED=1 \
HOST=0.0.0.0 \
PORT=7860
WORKDIR /app
# Copy package.json and install production dependencies
COPY package.json ./
RUN npm install --only=production
# Copy standalone server and build artifacts
COPY server.js .
COPY .next ./.next
COPY public ./public
COPY docs ./docs
# Copy esbuild WASM from node_modules (too large for git, installed via npm)
RUN cp node_modules/esbuild-wasm/esbuild.wasm public/esbuild.wasm 2>/dev/null || true
EXPOSE 7860
CMD ["node", "server.js"]