Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files1234567891011# Start from the existing imageFROM iib0011/omni-tools:latest# Expose the internal port used by the containerEXPOSE 8080# Optionally set a restart policy hint (Dockerfile doesn't support --restart)# The restart policy must be applied when running the container, not during build.# Define default command (if not already defined in base image)#CMD ["nginx", "-g", "daemon off;"]123456789101112131415161718192021# Use official Node.js image (LTS version)FROM node:18-alpine# Set working directory inside containerWORKDIR /app# Clone the repository directly inside the containerRUN apk add --no-cache git && \git clone https://github.com/iib0011/omni-tools.git .# Install dependenciesRUN npm install# Expose the app portEXPOSE 8080# Set environment variable for port (optional, if app reads process.env.PORT)ENV PORT=8080# Run the appCMD ["npm", "run", "dev"]
Dockerfile+17-7