Added backend and moved things
This commit is contained in:
parent
fad61c4d93
commit
395b3f1e54
27 changed files with 278 additions and 15 deletions
19
frontend/Dockerfile
Normal file
19
frontend/Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
|||
FROM node:latest
|
||||
|
||||
# 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
|
||||
|
||||
# add app
|
||||
COPY . ./
|
||||
|
||||
# start app
|
||||
CMD ["npm", "start"]
|
Loading…
Add table
Add a link
Reference in a new issue