11 lines
318 B
Docker
11 lines
318 B
Docker
ARG APPPORT=5001
|
|
FROM --platform=$TARGETPLATFORM node:20-slim
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm ci --omit=dev --ignore-scripts
|
|
RUN apt-get update && apt-get install -y build-essential python3 make g++ sqlite3 && rm -rf /var/lib/apt/lists/*
|
|
COPY . .
|
|
ENV PORT=5001
|
|
EXPOSE 5001
|
|
CMD ["node","backend/server2.js"]
|