generated from lucien/api-template
Added API endpoints and dockerfile
This commit is contained in:
parent
924e55b4f3
commit
5ddad2ed61
31 changed files with 3885 additions and 942 deletions
12
dockerfile
Normal file
12
dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM node:alpine AS build
|
||||
WORKDIR /app
|
||||
COPY front .
|
||||
RUN npm install && npm run build
|
||||
|
||||
FROM node:alpine
|
||||
WORKDIR /app
|
||||
COPY back .
|
||||
RUN npm install
|
||||
COPY --from=build /app/dist /app/public
|
||||
EXPOSE 80
|
||||
CMD ["node", "index.js"]
|
Loading…
Add table
Add a link
Reference in a new issue