Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtisassad committed Sep 17, 2024
1 parent 46d8c73 commit 81b08c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ COPY . /usr/src/app
WORKDIR /usr/src/app
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm run build
RUN pnpm deploy --filter=commonwealth --prod /packages/commonwealth
RUN mv /usr/src/app/packages/commonwealth/build /packages/commonwealth/build
RUN pnpm deploy --filter=commonwealth --prod /prod/commonwealth
RUN mv /usr/src/app/prod/commonwealth/build /prod/commonwealth/build

FROM base AS commonwealth
ENV NODE_ENV=production
COPY --from=build /packages/commonwealth /packages/commonwealth
WORKDIR /
COPY --from=build /prod/commonwealth /prod/commonwealth
WORKDIR /prod/commonwealth
RUN apt-get update && apt-get install -y curl # Needed for heroku
ENV PORT=$PORT

Expand Down
12 changes: 6 additions & 6 deletions packages/commonwealth/Procfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
web: cd packages/commonwealth && NODE_ENV=production node --import=extensionless/register --enable-source-maps ./build/server.js
consumer: cd packages/commonwealth && node --import=extensionless/register build/server/workers/commonwealthConsumer/commonwealthConsumer.js
evm-ce: cd packages/commonwealth && node --import=extensionless/register build/server/workers/evmChainEvents/startEvmPolling.js
knock: cd packages/commonwealth && node --import=extensionless/register build/server/workers/knock/knockWorker.js
message-relayer: cd packages/commonwealth && node --import=extensionless/register build/server/workers/messageRelayer/messageRelayer.js
release: cd packages/commonwealth && node --import=extensionless/register build/server/scripts/releasePhaseEnvCheck.js && npx sequelize-cli db:migrate --config server/sequelize.json && node --import=extensionless/register build/server/scripts/purgeCloudflareCache.js
web: NODE_ENV=production node --import=extensionless/register --enable-source-maps ./build/server.js
consumer: node --import=extensionless/register build/server/workers/commonwealthConsumer/commonwealthConsumer.js
evm-ce: node --import=extensionless/register build/server/workers/evmChainEvents/startEvmPolling.js
knock: node --import=extensionless/register build/server/workers/knock/knockWorker.js
message-relayer: node --import=extensionless/register build/server/workers/messageRelayer/messageRelayer.js
release: node --import=extensionless/register build/server/scripts/releasePhaseEnvCheck.js && npx sequelize-cli db:migrate --config server/sequelize.json && node --import=extensionless/register build/server/scripts/purgeCloudflareCache.js

0 comments on commit 81b08c8

Please sign in to comment.