add frontend project and docker containers
This commit is contained in:
parent
ae8525b891
commit
00a78f33b6
36 changed files with 3729 additions and 61 deletions
15
client/Dockerfile
Normal file
15
client/Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
FROM node:18 AS dependencies
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm install
|
||||
|
||||
# image for development
|
||||
FROM dependencies AS dev
|
||||
CMD ["npm", "run", "dev", "--" ,"--port", "3000", "--host", "0.0.0.0"]
|
||||
|
||||
FROM dependencies AS build
|
||||
COPY . ./
|
||||
RUN npm run build -- --mode production
|
||||
|
||||
CMD [ "node", "/app" ]
|
Loading…
Add table
Add a link
Reference in a new issue