diff --git a/bun.lockb b/bun.lockb index 8b0e86d..ed87169 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/dockerfile b/dockerfile index a8c6bf4..a29a50a 100644 --- a/dockerfile +++ b/dockerfile @@ -1,17 +1,20 @@ # Use oven/bun as parent image -FROM oven/bun:latest +FROM oven/bun:1.0.27 # Change the working directory on the Docker image to /app WORKDIR /app # Copy package.json and package-lock.json to the /app directory -COPY . . +COPY package.json ./ +COPY bun.lockb ./ +COPY src ./src +COPY tsconfig.json ./ # Install dependencies -RUN bun install +RUN bun install --frozen-lockfile # Expose application port EXPOSE 3000 # Start the application -CMD bun start \ No newline at end of file +CMD ["bun", "start"] \ No newline at end of file diff --git a/package.json b/package.json index 35c19e4..3a47da4 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "2.0.6", "main": "src/app.ts", "scripts": { - "start": "bun src/app.ts" + "start": "bun run src/app.ts" }, "author": "Fran Jurmanović ", "license": "MIT",