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
|
||||
|
||||
# Install OpenSSL and build tools for native modules
|
||||
RUN apk add --no-cache openssl openssl-dev python3 make g++
|
||||
FROM node:18
|
||||
|
||||
# Install pnpm
|
||||
RUN npm install -g pnpm
|
||||
@ -11,12 +8,9 @@ WORKDIR /app
|
||||
# Copy package files
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
|
||||
# Install dependencies (rebuild native modules)
|
||||
# Install dependencies
|
||||
RUN pnpm install --force
|
||||
|
||||
# Rebuild bcrypt for Alpine
|
||||
RUN pnpm rebuild bcrypt
|
||||
|
||||
# Copy source
|
||||
COPY . .
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user