We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f5e45b commit e560228Copy full SHA for e560228
Dockerfile
@@ -0,0 +1,22 @@
1
+# pull official base image
2
+FROM node:14-alpine
3
+
4
+# set working directory
5
+WORKDIR /app
6
7
+# add `/app/node_modules/.bin` to $PATH
8
+ENV PATH /app/node_modules/.bin:$PATH
9
10
+# install app dependencies
11
+COPY package.json ./
12
+RUN npm install --silent
13
+RUN npm install [email protected] -g --silent
14
15
+# add app
16
+COPY . ./
17
18
+# Expose port
19
+EXPOSE 3000
20
21
+# start app
22
+CMD ["npm", "start"]
docker-compose.yml
@@ -0,0 +1,17 @@
+version: '3.7'
+services:
+ sample:
+ container_name: react-soft-ui
+ build:
+ context: .
+ dockerfile: Dockerfile
+ volumes:
+ - '.:/app'
+ - '/app/node_modules'
+ ports:
+ - 3000:3000
+ environment:
+ - CHOKIDAR_USEPOLLING=true
0 commit comments