apps/auto-gold-bits/Dockerfile
FROM alpine:latest as dependency-preparer
WORKDIR /workspace/tinyburg
COPY common/deploy/auto-gold-bits.zip auto-gold-bits.zip
RUN unzip auto-gold-bits.zip && rm auto-gold-bits.zip
FROM node:20-slim
ENV NODE_ENV="production"
COPY --from=dependency-preparer /workspace/tinyburg /workspace/tinyburg
RUN node /workspace/tinyburg/create-links.js create
CMD ["node", "/workspace/tinyburg/apps/auto-gold-bits/index.js"]
LABEL org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.source="https://github.com/leonitousconforti/tinyburg" \
org.opencontainers.image.description="Auto gold bit farm"