Skip to content

Commit 0917b3f

Browse files
committed
added Dockefile and .env.template
1 parent e03454f commit 0917b3f

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.env.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
PORT=<PORT>
2+
HOST=<HOST>
3+

Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Use a Node.js base image
2+
FROM node:20
3+
4+
# Set working directory
5+
WORKDIR /app
6+
7+
# Copy package.json and install dependencies
8+
COPY package*.json ./
9+
RUN npm install
10+
11+
# Copy the rest of the application code
12+
COPY . .
13+
14+
# Expose the port the frontend runs on
15+
EXPOSE 3000
16+
17+
# Build nextJS
18+
RUN npm run build
19+
20+
# Start the frontend
21+
CMD ["npm", "start"]
22+

0 commit comments

Comments
 (0)