mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 09:01:17 +00:00
fix(foundry): fix runner version
This commit is contained in:
parent
f25a92aca8
commit
ffb9f1082b
10 changed files with 114 additions and 6 deletions
|
|
@ -19,6 +19,7 @@ RUN pnpm --filter @sandbox-agent/foundry-backend deploy --prod /out
|
|||
FROM oven/bun:1.2 AS runtime
|
||||
ENV NODE_ENV=production
|
||||
ENV HOME=/home/task
|
||||
ENV RIVET_RUNNER_VERSION_FILE=/etc/foundry/rivet-runner-version
|
||||
WORKDIR /app
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
|
|
@ -31,6 +32,8 @@ RUN addgroup --system --gid 1001 task \
|
|||
&& adduser --system --uid 1001 --home /home/task --ingroup task task \
|
||||
&& mkdir -p /home/task \
|
||||
&& chown -R task:task /home/task /app
|
||||
RUN mkdir -p /etc/foundry \
|
||||
&& date +%s > /etc/foundry/rivet-runner-version
|
||||
COPY --from=build /out ./
|
||||
USER task
|
||||
EXPOSE 7741
|
||||
|
|
|
|||
|
|
@ -21,6 +21,9 @@ RUN curl -fsSL "https://releases.rivet.dev/sandbox-agent/${SANDBOX_AGENT_VERSION
|
|||
|
||||
ENV PATH="/root/.local/bin:${PATH}"
|
||||
ENV SANDBOX_AGENT_BIN="/root/.local/bin/sandbox-agent"
|
||||
ENV RIVET_RUNNER_VERSION_FILE=/etc/foundry/rivet-runner-version
|
||||
RUN mkdir -p /etc/foundry \
|
||||
&& date +%s > /etc/foundry/rivet-runner-version
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@ RUN curl -fsSL "https://releases.rivet.dev/sandbox-agent/${SANDBOX_AGENT_VERSION
|
|||
|
||||
ENV PATH="/root/.local/bin:${PATH}"
|
||||
ENV SANDBOX_AGENT_BIN="/root/.local/bin/sandbox-agent"
|
||||
ENV RIVET_RUNNER_VERSION_FILE=/etc/foundry/rivet-runner-version
|
||||
RUN mkdir -p /etc/foundry \
|
||||
&& date +%s > /etc/foundry/rivet-runner-version
|
||||
|
||||
WORKDIR /workspace/quebec
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue