lifedebugger commited on
Commit
faf35e9
·
verified ·
1 Parent(s): 6f46604

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -30
Dockerfile DELETED
@@ -1,30 +0,0 @@
1
- # Gunakan image dasar Golang versi 1.21.6
2
- FROM golang:1.21.6
3
-
4
- # Set working directory
5
- WORKDIR /app
6
-
7
- # Copy go.mod dan go.sum
8
- COPY go.mod go.sum ./
9
-
10
- # Download dependencies
11
- RUN go mod download
12
-
13
- # Copy seluruh kode
14
- COPY . .
15
-
16
- # Buat file .env dengan variabel environment yang dibutuhkan
17
- RUN echo "DB_HOST=aws-0-ap-southeast-1.pooler.supabase.com" >> .env && \
18
- echo "DB_USER=postgres.soqmbegvnpowforfhjki" >> .env && \
19
- echo "DB_PASSWORD=PwebAPI2025" >> .env && \
20
- echo "DB_PORT=5432" >> .env && \
21
- echo "DB_NAME=postgres" >> .env && \
22
- echo "HOST_ADDRESS = 0.0.0.0" >> .env && \
23
- echo "HOST_PORT = 7860" >> .env && \
24
- echo "SALT=OkeGASOKEGASTAMBAHDUASORANGG45" >> .env
25
-
26
- # Build aplikasi
27
- RUN go build -o main .
28
-
29
- # Jalankan aplikasi
30
- CMD ["./main"]