FROM node:20-alpine
WORKDIR /app
LABEL org.opencontainers.image.title="InvisiProxy LTS" \
org.opencontainers.image.description="An effective, privacy-focused web proxy service" \
org.opencontainers.image.version="6.9.5" \
org.opencontainers.image.authors="InvisiProxy Team" \
org.opencontainers.image.source="https://github.com/QuiteAFancyEmerald/InvisiProxy/"
RUN apk add --no-cache tor bash
COPY . .
RUN npm run fresh-install
RUN npm run build
EXPOSE 8080 9050 9051
COPY serve.sh /serve.sh
RUN chmod +x /serve.sh
CMD ["/serve.sh"]