mikmc5 commited on
Commit
439a1d8
·
verified ·
1 Parent(s): 8aad0a0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -33
Dockerfile CHANGED
@@ -1,33 +1,5 @@
1
- FROM ubuntu:22.04
2
-
3
- ENV DEBIAN_FRONTEND=noninteractive
4
- WORKDIR /workspace
5
-
6
- # --- Install system packages ---
7
- RUN apt-get update && apt-get install -y \
8
- curl iproute2 iputils-ping \
9
- python3 python3-pip \
10
- ca-certificates sudo gnupg \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
- # --- Create folders ---
14
- RUN mkdir -p /app /var/log/firezone && \
15
- chmod 755 /app && chmod 755 /var/log/firezone
16
-
17
- # --- Skip mknod here — will be handled at runtime ---
18
- # (HF Spaces blocks mknod during build)
19
-
20
- # --- Install Firezone Gateway Binary ---
21
- RUN curl -L https://github.com/firezone/firezone/releases/latest/download/firezone-gateway-x86_64-unknown-linux-musl \
22
- -o /usr/local/bin/firezone-gateway && \
23
- chmod +x /usr/local/bin/firezone-gateway
24
-
25
- # --- Install Python dependencies ---
26
- RUN pip install --no-cache-dir torch transformers fastapi uvicorn
27
-
28
- # --- App and entrypoint ---
29
- COPY app.py /workspace/app.py
30
- COPY entrypoint.sh /workspace/entrypoint.sh
31
- RUN chmod +x /workspace/entrypoint.sh
32
-
33
- ENTRYPOINT ["/workspace/entrypoint.sh"]
 
1
+ FROM oven/bun:latest
2
+ WORKDIR /app
3
+ COPY . .
4
+ EXPOSE 3000
5
+ CMD ["bun", "server.js"]