Skip to content

Commit

Permalink
Feat: add dockerfile to ens-app (#95)
Browse files Browse the repository at this point in the history
* feat: add frontend gha to build and publish to docker repository

* feat: add DockerFile
  • Loading branch information
wantedsystem authored Apr 10, 2024
1 parent 4f5763a commit 48d7941
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM node:18

# Install system dependencies (if necessary)
RUN apt-get update && apt-get install -y \
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
libgif-dev \
librsvg2-dev \
build-essential \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app

COPY . .

# Install pnpm and dependencies
RUN npm install -g pnpm
RUN rm -rf node_modules
RUN pnpm config set store-dir ~/.local/share/pnpm/store
RUN pnpm install --frozen-lockfile

WORKDIR /app/packages/ens-app-v3

# Clear Next.js cache
RUN rm -rf .next

RUN pnpm run build

EXPOSE 3000

CMD ["pnpm", "start"]

0 comments on commit 48d7941

Please sign in to comment.