Skip to content

Commit

Permalink
fix: docker build file
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Jun 28, 2024
1 parent 55f2864 commit c8b85c2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions deployment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,22 @@ ENV SYNCER_PORT="${SYNCER_PORT:-3001}"
ENV FUEL_PROVIDER="${FUEL_PROVIDER:-https://testnet.fuel.network/v1/graphql}"
ENV SERVER_BUILD=true
ENV SYNC_MISSING=true
ENV DB_HOST="${DB_HOST}"
ENV DB_PORT="${DB_PORT}"
ENV DB_NAME="${DB_NAME}"
ENV DB_USER="${DB_USER}"
ENV DB_PASS="${DB_PASS}"
ENV RABBITMQ_HOST="${RABBITMQ_HOST}"
ENV RABBITMQ_PORT="${RABBITMQ_PORT}"
ENV RABBITMQ_USER="${RABBITMQ_USER}"
ENV RABBITMQ_PASS="${RABBITMQ_PASS}"

RUN corepack enable

FROM base AS build
COPY . /app
WORKDIR /app
RUN pnpm install --frozen-lockfile \
pnpm install -g pm2

RUN pnpm install --frozen-lockfile
FROM base AS explorer
COPY --from=build /app /app-explorer
WORKDIR /app-explorer/packages/graphql
Expand Down

0 comments on commit c8b85c2

Please sign in to comment.