Buckshot / Dockerfile
YoAkatsuki's picture
Update production multiplayer engine core, CORS, and presence system
8db0f8a
Raw History Blame Contribute Delete
420 Bytes
# Production Dockerfile for Bugshot-Roulette Server on Hugging Face Spaces
FROM node:20-slim
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
COPY package*.json ./
RUN npm install --omit=dev
# Bundle app source
COPY . .
# Expose Hugging Face Spaces standard port
EXPOSE 7860
# Production environment variables
ENV PORT=7860
ENV NODE_ENV=production
# Run the server
CMD [ "node", "index.js" ]