Skip to content

Commit 2a65193

Browse files
authored
Merge branch 'main' into staging
2 parents 821fab3 + 0917b3f commit 2a65193

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
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+

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
6-
"dev": "next dev",
6+
"dev": "HOST=0.0.0.0 PORT=3000 next dev",
77
"build": "next build",
8-
"start": "next start",
8+
"start": "HOST=0.0.0.0 PORT=3000 next start",
99
"lint": "next lint"
1010
},
1111
"dependencies": {

0 commit comments

Comments
 (0)