Skip to content

Commit c336ae4

Browse files
authored
Build(docker): update Docker config to link main and feature pages (#101)
1 parent 58c5766 commit c336ae4

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM node:18-alpine
2+
WORKDIR /app
3+
COPY package*.json ./
4+
RUN npm install
5+
COPY . .
6+
ENV HOST=0.0.0.0 BROWSER=none PORT=3001
7+
EXPOSE 3001
8+
CMD ["npm", "start"]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM node:18-alpine
2+
WORKDIR /app
3+
COPY package*.json ./
4+
RUN npm install
5+
COPY . .
6+
ENV HOST=0.0.0.0 PORT=3003
7+
EXPOSE 3003
8+
CMD ["npm", "run", "dev"]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
server {
2+
listen 80;
3+
server_name localhost;
4+
5+
root /usr/share/nginx/html;
6+
index index.html;
7+
8+
location / {
9+
try_files $uri /index.html;
10+
}
11+
}

0 commit comments

Comments
 (0)