feat: add SmartProxy Docker image

This commit is contained in:
2026-04-28 20:26:17 +00:00
commit 83e483f29c
13 changed files with 5430 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
FROM code.foss.global/host.today/ht-docker-node:lts AS build
LABEL author="Task Venture Capital GmbH <hello@task.vc>"
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY ts ./ts
COPY tsconfig.json ./
RUN pnpm build:daemon && pnpm prune --prod
FROM code.foss.global/host.today/ht-docker-node:lts
LABEL author="Task Venture Capital GmbH <hello@task.vc>"
WORKDIR /app
ENV NODE_ENV=production
ENV SMARTPROXY_CONFIG=/etc/smartproxy/config.json
ENV SMARTPROXY_ADMIN_HOST=0.0.0.0
ENV SMARTPROXY_ADMIN_PORT=3000
COPY --from=build /app/package.json ./package.json
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/dist_ts ./dist_ts
EXPOSE 80 443 3000
CMD ["node", "dist_ts/daemon.js"]