Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
🐳 clean up docker files a little
Browse files Browse the repository at this point in the history
  • Loading branch information
SerenModz21 committed Apr 3, 2022
1 parent 63c943d commit bfe210f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 24 deletions.
21 changes: 6 additions & 15 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
.vscode/
.idea/
.github/
.git/
dist/
node_modules/
yarn-debug.log*
yarn-error.log*
*.log
.env*

README.md
LICENSE
Dockerfile
.dockerignore
**
!src
!prisma
!package.json
!yarn.lock
!tsconfig.json
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
FROM node:lts-alpine AS deps
WORKDIR /deck
COPY package.json yarn.lock ./
COPY prisma prisma
RUN yarn install --frozen-lockfile
RUN yarn db:generate

FROM node:lts-alpine AS builder
WORKDIR /deck
COPY . .
COPY --from=deps /deck/node_modules node_modules
RUN yarn install --frozen-lockfile
RUN yarn db:generate
RUN yarn build

FROM node:lts-alpine AS runner
FROM node:lts-alpine
WORKDIR /deck
COPY --from=builder /deck/package.json /deck/yarn.lock ./
COPY --from=builder /deck/node_modules node_modules
Expand Down

0 comments on commit bfe210f

Please sign in to comment.