Spaces:
Runtime error
Runtime error
Download Dockerfile from lifedebugger/quzuu-api-dev: direct link, hf CLI and curl.
- Browser
- Download file 770 Bytes
-
https://huggingface.co/spaces/lifedebugger/quzuu-api-dev/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/lifedebugger/quzuu-api-dev/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/lifedebugger/quzuu-api-dev/resolve/main/Dockerfile
770 Bytes
| # Gunakan image dasar Golang versi 1.24.1 | |
| FROM golang:1.24.1 AS builder | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy go.mod dan go.sum | |
| COPY go.mod go.sum ./ | |
| # Download dependencies | |
| RUN go mod download | |
| # Copy seluruh kode | |
| COPY . . | |
| # Buat file .env dengan variabel environment yang dibutuhkan | |
| RUN echo "DB_HOST=aws-1-ap-northeast-2.pooler.supabase.com" >> .env && \ | |
| echo "DB_USER=postgres.abpcbfgdeapjofuskrdg" >> .env && \ | |
| echo "DB_PASSWORD=QUZUU2025" >> .env && \ | |
| echo "DB_PORT=5432" >> .env && \ | |
| echo "DB_NAME=postgres" >> .env && \ | |
| echo "HOST_ADDRESS = 0.0.0.0" >> .env && \ | |
| echo "HOST_PORT = 7860" >> .env && \ | |
| echo "EMAIL_VERIFICATION_DURATION = 2" >> .env | |
| # Build aplikasi | |
| RUN go build -o main . | |
| # Jalankan aplikasi | |
| CMD ["./main"] | |