1
0
Files
jecnarozvrh/Dockerfile
jzitnik-dev 55a2eaaeb4
All checks were successful
Remote Deploy / deploy (push) Successful in 6s
docs: Include website
2025-12-20 18:55:49 +01:00

24 lines
393 B
Docker

# Use official Node.js image as base
FROM node:18
# Create app directory
WORKDIR /usr/src/app
# Copy package.json and package-lock.json (if available)
COPY package*.json ./
# Install dependencies
RUN npm install
# Build
RUN npm run build
# Copy app source code
COPY . .
# Expose the port your app runs on (optional, depends on your app)
EXPOSE 3000
# Start the app
CMD ["npm", "start"]