We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c217ca7 + d925a56 commit 4a6ef2cCopy full SHA for 4a6ef2c
Dockerfile
@@ -0,0 +1,25 @@
1
+FROM golang:1.18-alpine
2
+
3
+RUN apk add build-base
4
5
+WORKDIR "/app"
6
7
+ENV go env -w GO111MODULE=on
8
+ENV CGP_ENABLED=0
9
+ENV GOOS=linux
10
+ENV GOARCH=amd64
11
12
+COPY go.mod .
13
+COPY go.sum .
14
15
+RUN go mod download
16
17
+COPY *.go .
18
+COPY . .
19
20
+RUN go build ./... && go build
21
22
+EXPOSE 8081
23
24
+CMD ["./go-authentication-api"]
25
internal/users/data/repository.go
@@ -14,7 +14,7 @@ type UserRepository struct{
func NewRepository() *UserRepository{
db := UserRepository{}
- db.DB = database.Postgres{}
+ db.DB = database.SQLite{}
return &UserRepository{DB: db.DB}
}
0 commit comments