Build with Dockerfile works now
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user