fix env and url
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
FROM golang:1.23-alpine AS builder
|
||||
|
||||
# Install tzdata dan dependencies build
|
||||
RUN apk add --no-cache tzdata build-base
|
||||
|
||||
# Set timezone ke Asia/Jakarta
|
||||
ENV TZ=Asia/Jakarta
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
@@ -15,7 +21,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
|
||||
# RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
||||
|
||||
FROM alpine:latest
|
||||
RUN apk --no-cache add ca-certificates tzdata
|
||||
RUN apk --no-cache add ca-certificates
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ services:
|
||||
- SATUDATA_NAME=satu_db
|
||||
- SATUDATA_PORT=5000
|
||||
# BPJS
|
||||
- BASEURL_BPJS=https://apijkn.bpjs-kesehatan.go.id
|
||||
- BASEURL_BPJS=https://apijkn.bpjs-kesehatan.go.id/
|
||||
- CONS_ID=5257
|
||||
- USER_KEY=4cf1cbef8c008440bbe9ef9ba789e482
|
||||
- SECRET_KEY=1bV363512D
|
||||
|
||||
@@ -20,7 +20,7 @@ import (
|
||||
func GetJadwalDokter() bool {
|
||||
baseUrl := os.Getenv("BASEURL_BPJS")
|
||||
endpoint := os.Getenv("ANTREAN_RS")
|
||||
url := baseUrl + "/" + endpoint
|
||||
url := baseUrl + endpoint
|
||||
conf := config.ConfigBpjs{}
|
||||
|
||||
header := cfg.SetHeader(false, conf)
|
||||
|
||||
Reference in New Issue
Block a user