feat: add SmartProxy Docker image
This commit is contained in:
+28
@@ -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"]
|
||||
Reference in New Issue
Block a user