forked from Cygnusfear/laputa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) 路 688 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (24 loc) 路 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Builder Stage
FROM ghcr.io/foundry-rs/foundry as builder
# Copy our source code into the container
WORKDIR /app
RUN apk add nodejs --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main --allow-untrusted
RUN apk add --update npm git
# Check Node.js and npm are installed correctly
RUN node -v && npm -v
# Install pnpm
RUN npm install -g pnpm@8
COPY . .
RUN pnpm install --frozen-lockfile
# RUN ls -ls
# RUN foundryup
ENV SKIP_FOUNDRY=true
ENV VITE_CHAIN_ID=4242
RUN pnpm run build
# Runtime Stage
FROM node:14-alpine
WORKDIR /app
RUN npm install -g serve
COPY --from=builder /app/packages/client/dist /app
EXPOSE 3000
CMD ["serve", "-s", "/app", "-p", "3000"]