Spaces:
Paused
Paused
Update Dockerfile
Browse files123456789101112131415161718192021222324252627282930313233FROM ubuntu:22.04ENV DEBIAN_FRONTEND=noninteractiveWORKDIR /workspace# --- Install system packages ---RUN apt-get update && apt-get install -y \curl iproute2 iputils-ping \python3 python3-pip \ca-certificates sudo gnupg \&& rm -rf /var/lib/apt/lists/*# --- Create folders ---RUN mkdir -p /app /var/log/firezone && \chmod 755 /app && chmod 755 /var/log/firezone# --- Skip mknod here — will be handled at runtime ---# (HF Spaces blocks mknod during build)# --- Install Firezone Gateway Binary ---RUN curl -L https://github.com/firezone/firezone/releases/latest/download/firezone-gateway-x86_64-unknown-linux-musl \-o /usr/local/bin/firezone-gateway && \chmod +x /usr/local/bin/firezone-gateway# --- Install Python dependencies ---RUN pip install --no-cache-dir torch transformers fastapi uvicorn# --- App and entrypoint ---COPY app.py /workspace/app.pyCOPY entrypoint.sh /workspace/entrypoint.shRUN chmod +x /workspace/entrypoint.shENTRYPOINT ["/workspace/entrypoint.sh"]12345FROM oven/bun:latestWORKDIR /appCOPY . .EXPOSE 3000CMD ["bun", "server.js"]
Dockerfile+5-33