Files
tankwar_proj/server/Dockerfile
2026-05-16 09:59:54 +08:00

19 lines
439 B
Docker

FROM node:18-alpine
LABEL maintainer="tankwar" \
description="Tank War PVP WebSocket Server"
WORKDIR /app
# Copy all source including node_modules (pre-installed locally)
# This avoids npm install issues due to network restrictions on build nodes
COPY . .
ENV NODE_ENV=production \
HOST=0.0.0.0 \
PORT=3000
EXPOSE 3000
# Use node directly (tini unavailable due to network restrictions on nodes)
CMD ["node", "index.js"]