Skip to content

Commit

Permalink
Simplify build
Browse files Browse the repository at this point in the history
  • Loading branch information
nevillelyh committed Jan 9, 2025
1 parent d4930a1 commit 8382b8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ ENV UV_PYTHON_PREFERENCE=only-managed
ENV UV_TOOL_BIN_DIR=$PREFIX/bin
ENV UV_TOOL_DIR=$PREFIX/uv/tools

ADD ./apt-dependencies.txt /tmp/apt-dependencies.txt
RUN apt-get update \
&& apt-get install -y $(grep -v '^#' </tmp/apt-dependencies.txt) \
&& rm -rf /var/lib/apt/lists/* /tmp/apt-dependencies.txt

RUN --mount=type=bind,from=build,target=/tmp/build-layer,ro \
ln -sv /usr/bin/tini /sbin/tini \
&& mkdir -p /opt/r8/monobase /tmp/r8 \
Expand Down
8 changes: 4 additions & 4 deletions runtime.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ ENV MONOBASE_PREFIX=/srv/r8/monobase
ENV PATH=$MONOBASE_PREFIX/bin:$PATH
ENV TZ=Etc/UTC

ADD ./apt-dependencies.txt /tmp/apt-dependencies.txt
RUN --mount=type=bind,src=.,dst=/src,ro \
RUN apt-get update \
&& apt-get install -y $(grep -v '^#' </tmp/apt-dependencies.txt) \
&& rm -rf /var/lib/apt/lists/* /tmp/apt-dependencies.txt
&& apt-get install -y $(grep -v '^#' </src/apt-dependencies.txt) \
&& rm -rf /var/lib/apt/lists/*

RUN --mount=type=bind,src=../../,dst=/src,ro \
RUN --mount=type=bind,src=.,dst=/src,ro \
ln -sv /usr/bin/tini /sbin/tini \
&& mkdir -p /opt/r8/monobase \
&& ls -la /src/ \
Expand Down

0 comments on commit 8382b8a

Please sign in to comment.