diff --git a/Dockerfile b/Dockerfile index 45f89c8..87b8cc9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,9 +7,9 @@ RUN apt update -y && \ apt autoremove -y --purge && \ apt clean -COPY ./ ./ COPY ./docker-entrypoint.sh /usr/local/bin + +WORKDIR /app +COPY ./ ./ RUN bun install --production --frozen-lockfile --no-cache && \ rm -rf ~/.bun - -USER bun:bun diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 6236f73..b9b4133 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,5 +1,5 @@ #!/usr/bin/env sh set -e -cd ~/app +cd /app exec bun start /drone/src