mirror of
https://github.com/kind-0/nsecbunkerd.git
synced 2026-05-03 07:00:11 +00:00
Refactor Dockerfile to simplify setup
Removed OpenSSL and build tools installation, simplified dependency installation process.
This commit is contained in:
parent
42f40889f6
commit
b9bbc2739f
10
Dockerfile
10
Dockerfile
@ -1,7 +1,4 @@
|
|||||||
FROM node:18-alpine
|
FROM node:18
|
||||||
|
|
||||||
# Install OpenSSL and build tools for native modules
|
|
||||||
RUN apk add --no-cache openssl openssl-dev python3 make g++
|
|
||||||
|
|
||||||
# Install pnpm
|
# Install pnpm
|
||||||
RUN npm install -g pnpm
|
RUN npm install -g pnpm
|
||||||
@ -11,12 +8,9 @@ WORKDIR /app
|
|||||||
# Copy package files
|
# Copy package files
|
||||||
COPY package.json pnpm-lock.yaml ./
|
COPY package.json pnpm-lock.yaml ./
|
||||||
|
|
||||||
# Install dependencies (rebuild native modules)
|
# Install dependencies
|
||||||
RUN pnpm install --force
|
RUN pnpm install --force
|
||||||
|
|
||||||
# Rebuild bcrypt for Alpine
|
|
||||||
RUN pnpm rebuild bcrypt
|
|
||||||
|
|
||||||
# Copy source
|
# Copy source
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user