This commit is contained in:
紫云徽 2024-08-05 14:33:04 +08:00
parent e60fed48b4
commit c45d06b044
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -5,4 +5,4 @@ services:
- '7000:7000'
restart: unless-stopped
volumes:
- /home/ns:/config:ro
- /home/ns:/config