mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 11:06:59 +01:00
add iteminfo command, change name of project to qweribot, fix ghcr publish url, add proper README.md
This commit is contained in:
22
Dockerfile.qweribot
Normal file
22
Dockerfile.qweribot
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM oven/bun 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 prerelease
|
||||
COPY --from=install /temp/dev/node_modules node_modules
|
||||
COPY . .
|
||||
|
||||
FROM base AS release
|
||||
COPY --from=install /temp/prod/node_modules node_modules
|
||||
COPY --from=prerelease /app/src ./src
|
||||
COPY --from=prerelease /app/package.json .
|
||||
|
||||
CMD [ "bun", "." ]
|
||||
Reference in New Issue
Block a user