docker prep
All checks were successful
CD / Check changes (push) Successful in 7s
CI / Test (pull_request) Successful in 19s
CD / test (push) Successful in 1m25s
CD / Build and push (amd64) (push) Successful in 48s
CD / Build and push (arm64) (push) Successful in 3m27s
CD / Create manifest (push) Successful in 9s
All checks were successful
CD / Check changes (push) Successful in 7s
CI / Test (pull_request) Successful in 19s
CD / test (push) Successful in 1m25s
CD / Build and push (amd64) (push) Successful in 48s
CD / Build and push (arm64) (push) Successful in 3m27s
CD / Create manifest (push) Successful in 9s
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM oven/bun:1.2.18 AS base
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
FROM base AS install
|
||||
RUN mkdir -p /temp/dev
|
||||
COPY package.json bun.lock /temp/dev/
|
||||
RUN cd /temp/dev && bun install --frozen-lockfile
|
||||
|
||||
RUN mkdir -p /temp/prod
|
||||
COPY package.json bun.lock /temp/prod/
|
||||
RUN cd /temp/prod && bun install --frozen-lockfile --production
|
||||
|
||||
FROM base AS build
|
||||
COPY --from=install /temp/dev/node_modules node_modules
|
||||
COPY . .
|
||||
RUN bun run build
|
||||
|
||||
FROM base AS release
|
||||
COPY --from=install /temp/prod/node_modules node_modules
|
||||
COPY --from=build /app/dist .
|
||||
|
||||
CMD [ "bun", "/app/main.js"]
|
||||
Reference in New Issue
Block a user