-
-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: Fix the docker-based development env (#456)
- Loading branch information
1 parent
f6192da
commit 3f22801
Showing
3 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# See https://docs.hoarder.app/configuration for more information | ||
DATA_DIR=/data | ||
MEILI_ADDR=http://127.0.0.1:7700 | ||
MEILI_MASTER_KEY=[generate with <openssl rand -base64 36>] | ||
NEXTAUTH_URL=http://localhost:3000 | ||
NEXTAUTH_SECRET=[generate with <openssl rand -base64 36>] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
FROM node:21-alpine | ||
|
||
RUN apk add --no-cache libc6-compat make g++ py3-pip linux-headers | ||
ENV PUPPETEER_SKIP_DOWNLOAD true | ||
|
||
WORKDIR /app | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
|
||
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | ||
RUN apk add --no-cache libc6-compat make g++ py3-pip linux-headers git | ||
|
||
RUN corepack enable | ||
|
||
COPY . . | ||
ENV NEXT_TELEMETRY_DISABLED 1 | ||
ENV PUPPETEER_SKIP_DOWNLOAD true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters