feat(api): setup nestjs

This commit is contained in:
Julian Tölle 2020-01-25 22:19:14 +01:00
commit db62d5d908
25 changed files with 10115 additions and 0 deletions

23
Dockerfile Normal file
View file

@ -0,0 +1,23 @@
FROM node:12-alpine as common
LABEL org.label-schema.schema-version="1.0" \
org.label-schema.name="listory" \
stage="common"
WORKDIR /app
COPY *.json /app/
FROM common as builder
LABEL stage="builder"
RUN npm ci
COPY src/ /app/src/
RUN npm run build
FROM common as app
LABEL stage="app"
RUN npm ci --only=production
COPY --from=builder /app/dist/ /app/dist/
CMD ["dist/main"]