Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Allison67 committed Dec 6, 2023
1 parent c5e2521 commit 4e0759b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
9 changes: 3 additions & 6 deletions back-end/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# start from the node v16 base image
FROM node:16

WORKDIR /usr/src/back-end
#WORKDIR /usr/src/back-end

# install dependencies into the image - doing this first will speed up subsequent builds, as Docker will cache this step
COPY package*.json ./

RUN npm ci --only=production

RUN npm install nodemon forever -g
RUN npm install

# copy the remaining app source code into the default directory within the image
COPY . .
Expand All @@ -17,4 +14,4 @@ COPY . .
EXPOSE 3001

# define the runtime command that will be executed when a container is made from the image
CMD [ "forever", "-o", "out.log", "-e", "err.log", "app.js" ]
CMD [ "npm", "start" ]
7 changes: 1 addition & 6 deletions front-end/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
Expand All @@ -42,6 +36,7 @@
]
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"react-scripts": "^5.0.1",
"tailwindcss": "^3.3.5"
}
Expand Down

0 comments on commit 4e0759b

Please sign in to comment.