Significant API progress
This commit is contained in:
parent
ea72d194c2
commit
01227bb28f
27 changed files with 2378 additions and 0 deletions
27
backend/Dockerfile
Normal file
27
backend/Dockerfile
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
FROM node:14 AS builder
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build-ts
|
||||
|
||||
FROM node:14-alpine AS server
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
RUN chown -R node:node /usr/src/app
|
||||
|
||||
USER node
|
||||
EXPOSE 5000
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install --production
|
||||
|
||||
COPY --from=0 /usr/src/app/dist dist
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
CMD ["node", "dist/server.js"]
|
||||
Loading…
Reference in a new issue