mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat(api): setup nestjs
This commit is contained in:
commit
db62d5d908
25 changed files with 10115 additions and 0 deletions
23
Dockerfile
Normal file
23
Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue