This commit is contained in:
紫云徽 2024-08-05 21:00:16 +08:00
parent d67c94bcdc
commit a32e2db264

View File

@ -1,9 +1,11 @@
FROM oven/bun:1 FROM oven/bun:latest
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY . .
COPY ./config.json /config COPY ./config.json /config
COPY . .
RUN bun install --frozen-lockfile --production RUN bun install --frozen-lockfile --production
ENV NODE_ENV=production ENV NODE_ENV=production
RUN bun run build
EXPOSE 7000/tcp EXPOSE 7000/tcp
VOLUME [ "/config"] VOLUME [ "/config"]
ENTRYPOINT [ "bun", "run", "index.ts" ] ENTRYPOINT [ "bun", "run", "index.ts" ]