node/Dockerfile.dev
2025-04-06 20:20:28 +03:00

21 lines
286 B
Docker

FROM node:20-alpine
WORKDIR /app
# Install dependencies
COPY package*.json ./
RUN npm install
# Install tsx
RUN npm install -g tsx
# Copy source code
COPY src/ ./
COPY tsconfig.json ./
# Expose port
EXPOSE 7777
# Run the TypeScript file directly
CMD ["tsx", "watch", "server.ts"]