Skip to content

Commit e0953db

Browse files
committed
PROCESS: Portability improved owing to Docker
1 parent ad88378 commit e0953db

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM node:lts as porphyry-builder
2+
3+
COPY . /Porphyry
4+
WORKDIR /Porphyry
5+
RUN npm install
6+
RUN npm run build
7+
8+
FROM nginx
9+
10+
COPY --from=porphyry-builder /Porphyry/build /usr/share/nginx/html

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"sort-by": "^1.2.0"
1717
},
1818
"devDependencies": {
19-
"react-scripts": "^3.0.1",
19+
"react-scripts": "^3.2.0",
2020
"serve": "^11.0.2"
2121
},
2222
"scripts": {

0 commit comments

Comments
 (0)