Browse Source
Merge pull request #4 from Diden05/patch-1
Update Dockerfile for correctly work sqlite DB
pull/28/head
Dimas Restu H
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
Dockerfile
|
|
@ -7,7 +7,7 @@ WORKDIR /usr/src/app |
|
|
COPY . ./ |
|
|
COPY . ./ |
|
|
|
|
|
|
|
|
RUN go mod download \ |
|
|
RUN go mod download \ |
|
|
&& CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -a -o main cmd/main/main.go |
|
|
|
|
|
|
|
|
&& CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w" -a -o main cmd/main/main.go |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Final Image |
|
|
# Final Image |
|
|
|