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
Matheus Sampaio Queiroga eb1bf7e518 Docker image support (#18)
* init support docker image

Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
2023-03-29 13:19:56 -03:00

15 lines
356 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 ci
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", "--cache", "/data/cache" ]