-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile_App
More file actions
32 lines (24 loc) · 833 Bytes
/
Dockerfile_App
File metadata and controls
32 lines (24 loc) · 833 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
32
FROM node:20-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN apt-get update && apt-get install -y python3 make g++ \
&& corepack enable \
&& npm install -g node-gyp \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /mint
# Copy package.json files
COPY contracts/package.json ./contracts/
COPY app/base/package.json ./app/base/
COPY app/examples/starter-zinc/package.json ./app/examples/starter-zinc/
COPY app/themes/zinc/package.json ./app/themes/zinc/
COPY utils/package.json ./utils/
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
# Install dependencies
RUN pnpm install --frozen-lockfile
# Copy the rest of the application
COPY . .
# Build
RUN pnpm -F @visualizevalue/mint-app-example-zinc build
WORKDIR /mint/app/examples/starter-zinc
EXPOSE 3000
CMD [ "node", ".output/server/index.mjs" ]