From c45d06b044824c26d227eaa96fbdbc87a0fbe1c3 Mon Sep 17 00:00:00 2001 From: Ziyunhui Date: Mon, 5 Aug 2024 14:33:04 +0800 Subject: [PATCH] test4 --- Dockerfile | 4 ++-- compose.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c9f6d1c..1f0bdeb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] diff --git a/compose.yaml b/compose.yaml index a4519a9..ac0c610 100644 --- a/compose.yaml +++ b/compose.yaml @@ -5,4 +5,4 @@ services: - '7000:7000' restart: unless-stopped volumes: - - /home/ns:/config:ro + - /home/ns:/config