Skip to content

Commit 23cd50c

Browse files
committed
PEER-254: Dockerfiles
1 parent 7431eab commit 23cd50c

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

frontend/react.Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM node:20-alpine
2+
3+
WORKDIR /app
4+
5+
COPY ./frontend/package*.json ./
6+
RUN npm install
7+
8+
COPY ./frontend/ ./
9+
10+
RUN npm run build
11+
12+
RUN npm install -g serve
13+
14+
EXPOSE 3000
15+
16+
CMD ["serve", "-s", "dist", "-l", "3000"]

frontend/react.dev.Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM node:20-alpine
2+
3+
WORKDIR /app/
4+
5+
COPY ./frontend/package*.json ./
6+
RUN npm install
7+
8+
COPY ./frontend/ ./
9+
10+
EXPOSE 5173
11+
12+
CMD ["npm", "run", "dev", "--", "--host"]

0 commit comments

Comments
 (0)