Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Akamig committed Nov 21, 2023
1 parent 2bd6749 commit 4fb6fec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ NC_REGISTRY_ENDPOINT=
NC_UPSTREAM_PLANET=
NC_DOWNSTREAM_PLANET=
MONITOR_STATE_STORE_PATH=
DATABASE_URL=
NC_VAULT_ADDRESS=
NC_VAULT_AVATAR_ADDRESS=
NC_UPSTREAM_PRIVATE_KEY=
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM node:20.4 AS build-env
COPY . /build
WORKDIR /build
RUN yarn
RUN yarn prisma generate
RUN yarn compile
RUN wget https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.2/napi-v6-linux-musl-x64.tar.gz && tar -xvzf napi-v6-linux-musl-x64.tar.gz
RUN mv ./napi-v6-linux-musl-x64 /build/node_modules/sqlite3/lib/binding
Expand All @@ -14,4 +15,5 @@ COPY --from=build-env /build/node_modules /app/node_modules
COPY package.json /app

WORKDIR /app
ENTRYPOINT ["npx", "tsx", "index.js"]

CMD yarn prisma migrate deploy && npx tsx ./index.js

0 comments on commit 4fb6fec

Please sign in to comment.