Skip to content

Commit

Permalink
chore: eject alpine runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyko committed May 31, 2024
1 parent 31d8117 commit 20589f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 48 deletions.
37 changes: 0 additions & 37 deletions Dockerfile

This file was deleted.

13 changes: 3 additions & 10 deletions apps/bot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
FROM node:20-alpine AS base
FROM node:20.14.0-slim AS base

FROM base AS pruned
WORKDIR /app

RUN apk add --no-cache libc6-compat
RUN apk update
RUN yarn global add turbo

COPY . .

RUN turbo prune --scope bot --docker

FROM base as builder
ENV CI true
WORKDIR /app
RUN apk add --no-cache libc6-compat
RUN apk update

# First install the dependencies (as they change less often)
COPY .gitignore .gitignore
Expand All @@ -30,8 +23,8 @@ COPY --from=pruned /app/out/full/ .
COPY turbo.json turbo.json
RUN yarn turbo run build --filter bot

FROM node:20-alpine as runner
FROM node:20.14.0-slim as runner
WORKDIR /app
COPY --from=builder /app .
WORKDIR /app/apps/bot
CMD ["node", "dist/index.js"]
CMD ["node", "--enable-source-maps", "dist/index.js"]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
}
},
"volta": {
"node": "20.9.0",
"node": "20.14.0",
"yarn": "4.0.1"
},
"packageManager": "[email protected]"
Expand Down

0 comments on commit 20589f1

Please sign in to comment.