diff --git a/Dockerfile b/Dockerfile index 76a376f..c4a8a55 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN apt-get update && \ # install BunJs RUN curl -fsSL https://bun.com/install | bash ENV PATH="/root/.bun/bin:$PATH" -# symlink python +# symlink python3 to python RUN ln -s /usr/bin/python3 /usr/bin/python # install dependencies into temp directory @@ -15,13 +15,14 @@ FROM base AS install RUN mkdir -p /temp/dev COPY package.json bun.lock /temp/dev/ RUN cd /temp/dev && bun install --frozen-lockfile +# and install python dependencies +COPY ./requirements.txt . +RUN pip3 install --break-system-packages -r ./requirements.txt # install with --production (exclude devDependencies) RUN mkdir -p /temp/prod COPY package.json bun.lock /temp/prod/ RUN cd /temp/prod && bun install --frozen-lockfile --production -# prepare python packages -RUN pip3 install -r requirements.txt # copy node_modules from temp directory # then copy all (non-ignored) project files into the image diff --git a/package.json b/package.json index dea8da3..32b5b91 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "version": "0.1.0", "name": "eventcalender", "module": "./src/app.ts", "type": "module", @@ -11,7 +12,8 @@ "dev:init": "bun run ./src/app.ts --init", "db:init": "bun run ./run/db_init.ts", "db:deleteall": "bun run ./run/db_deleteall.ts", - "build": "bun build ./src/app.ts --compile --outfile ./build/77th_event_calendar_notification" + "build": "bun build ./src/app.ts --compile --outfile ./build/77th_event_calendar_notification", + "docker:build": "docker build -t chiko/77th_eventcalendarntfy:0.1.0 ." }, "peerDependencies": { "typescript": "^5"