first commit

This commit is contained in:
Olu Amey
2022-10-02 13:09:52 -04:00
parent 0c9f4a5d9e
commit f07486e245
2 changed files with 39 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
version: '3'
services:
merms-myfit:
build:
context: .
dockerfile: docker/Dockerfile
restart: unless-stopped
volumes:
- ./:/app
- '/app/node_modules'
ports:
- 9054:3000
environment:
- CHOKIDAR_USEPOLLING=true
volumes:
src:
+23
View File
@@ -0,0 +1,23 @@
# pull official base image
# FROM node:alpine
FROM node:13.12.0-alpine
# FROM node:16.13.1-alpine
# FROM node:16
# set working directory
WORKDIR /app
# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH
# install app dependencies
COPY package.json ./
#COPY package-lock.json ./
RUN npm install --silent
RUN npm install react-scripts@3.4.1 -g --silent
# add app
COPY . ./
# start app
CMD ["npm", "start"]