mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 17:15:34 -08:00
added k3d test scripts
This commit is contained in:
22
Dockerfile-tilt
Normal file
22
Dockerfile-tilt
Normal file
@@ -0,0 +1,22 @@
|
||||
# syntax = docker/dockerfile:latest
|
||||
FROM docker.io/node:18-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --link package.json pnpm-lock.yaml* ./
|
||||
|
||||
RUN <<EOF
|
||||
set -xe
|
||||
apk add libc6-compat
|
||||
apk add --virtual .gyp python3 make g++
|
||||
npm install -g pnpm
|
||||
npm install -g next
|
||||
EOF
|
||||
|
||||
RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store pnpm fetch | grep -v "cross-device link not permitted\|Falling back to copying packages from store"
|
||||
|
||||
RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store pnpm install -r --offline
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD ["npx", "next", "dev"]
|
||||
Reference in New Issue
Block a user