From b5598f759cc7742417f13339e5d64bd4b6f852b0 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Thu, 4 Jan 2024 20:32:51 -0800 Subject: [PATCH] refactor: :recycle: bun-based dockerfile --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 504cfff6..4f5af73b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,14 @@ # syntax=docker/dockerfile:1 -FROM node:alpine as build +FROM oven/bun:latest as build WORKDIR /app COPY package.json package-lock.json ./ -RUN npm ci - COPY . . -RUN npm run build + +RUN bun install +RUN bun run build FROM python:3.11-slim-buster as base @@ -32,4 +32,4 @@ RUN pip3 install -r requirements.txt COPY ./backend . -CMD [ "sh", "start.sh"] \ No newline at end of file +CMD [ "sh", "start.sh"]