Skip to content

Commit

Permalink
Add docker build config
Browse files Browse the repository at this point in the history
  • Loading branch information
minetoblend committed Aug 7, 2024
1 parent abf66fd commit e05d1c2
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.files
node_modules
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM node:22.6-alpine
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

RUN apk add --update --no-cache \
make \
g++ \
jpeg-dev \
cairo-dev \
giflib-dev \
pango-dev \
libtool \
autoconf \
automake

WORKDIR /app

COPY package.json /app/
COPY pnpm-lock.yaml /app/

RUN pnpm install

COPY . .

RUN pnpm build

ENTRYPOINT [ "pnpm", "start" ]
9 changes: 7 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
"outDir": "./dist/",
"skipLibCheck": true,
"emitDecoratorMetadata": false,
"experimentalDecorators": true
"experimentalDecorators": true,
"noUnusedLocals": false,
"allowUnreachableCode": true,
"strictNullChecks": false,
"noImplicitReturns": false
},
"include": ["src/**/*.ts"]
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "dist"]
}

0 comments on commit e05d1c2

Please sign in to comment.