-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (20 loc) · 870 Bytes
/
Dockerfile
File metadata and controls
23 lines (20 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM node:20.17.0 AS build
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y --no-install-recommends curl
RUN curl -sL -o /usr/local/bin/circom https://github.com/iden3/circom/releases/download/v2.1.9/circom-linux-amd64 && chmod +x /usr/local/bin/circom
WORKDIR /app
RUN yarn set version 4.0.2
COPY . .
RUN yarn
RUN yarn setup && yarn build
WORKDIR /app/examples/demo-app/core
RUN yarn
FROM node:20.17.0-bookworm-slim
ENV PATH="$PATH:/app/node_modules/.bin:/app/examples/demo-app/core/node_modules/.bin"
USER node
WORKDIR /app
COPY --chown=node:node --from=build /app/examples/demo-app /app/examples/demo-app
COPY --chown=node:node --from=build /app/node_modules /app/node_modules
COPY --chown=node:node --from=build /app/upa/dist /app/upa/dist
COPY --chown=node:node --from=build /app/upa/package.json /app/upa/package.json
ENTRYPOINT ["demo-app"]