forked from sandman21vs/jade-web-flasher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 713 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Use the official Node.js LTS image
FROM node:20-alpine
# Set the working directory inside the container
WORKDIR /app
# Install tools required at runtime
RUN apk add --no-cache git
# Copy package.json and package-lock.json for dependency installation
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application files
COPY . .
# Copy entrypoint that refreshes the repo when the container starts
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Expose the default Next.js port
EXPOSE 3000
# Command to run the development server
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["npm", "run", "dev"]