| # Use the official Zig image as the base | |
| FROM ziglang/zig:0.14.0 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy the Zig source files | |
| COPY . . | |
| # Build the Zig application | |
| RUN zig build -Doptimize=ReleaseFast | |
| # Expose port 3000 | |
| EXPOSE 7860 | |
| # Run the application, binding to 0.0.0.0:7860 | |
| # run ./zig-out/bin/newmine | |
| CMD ["./zig-out/bin/newmine"] | |