This repository has been archived on 2025-02-19. You can view files and clone it, but cannot push or open issues or pull requests.
Files
node-apt/Dockerfile
2023-04-20 23:32:58 -03:00

16 lines
355 B
Docker

FROM node:lts
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y python3 python3-pip && rm -rf /var/lib/apt/*
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Clean build
FROM node:lts
VOLUME [ "/data" ]
WORKDIR /app
COPY --from=0 /app/ ./
RUN npm link
ENTRYPOINT [ "apt-stream", "server", "--data", "/data" ]