-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
đź“ť feat: fix server dockerfile && untrack *_templ.go
- Loading branch information
1 parent
d30b126
commit 94981f0
Showing
15 changed files
with
34 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,23 @@ | ||
# MacOS | ||
.DS_Store | ||
|
||
# Cli | ||
sac | ||
|
||
# VSCode | ||
.vscode | ||
.trunk | ||
|
||
# Node modules | ||
node_modules | ||
|
||
# Environment files | ||
.env | ||
.env.dev | ||
.env.prod | ||
|
||
# Debug files | ||
backend/tests/api/__debug_* | ||
.env.prod | ||
|
||
frontend/mobile/ios/ | ||
frontend/mobile/android/ | ||
tmp/ | ||
ios | ||
android | ||
.idea/modules.xml | ||
|
||
*_templ.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
tests/ | ||
docs/ | ||
docs/ | ||
*.md | ||
*.templ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM golang:1.22.2 | ||
FROM golang:1.22-alpine as builder | ||
|
||
WORKDIR /app | ||
RUN apk add --no-cache make nodejs npm git | ||
|
||
COPY go.mod go.sum ./ | ||
|
||
COPY *.go ./ | ||
COPY . ./ | ||
RUN go install github.com/a-h/templ/cmd/templ@latest | ||
RUN templ generate | ||
RUN go get ./... | ||
RUN go mod tidy | ||
RUN go mod download | ||
RUN go build -tags prod -o bin/sac main.go | ||
|
||
RUN CGO_ENABLED=0 GOOS=linux go build -v -o ./sac | ||
FROM scratch | ||
COPY --from=builder /app/bin/sac /sac | ||
|
||
EXPOSE 8080 | ||
|
||
CMD ["/sac"] | ||
ENTRYPOINT [ "./sac" ] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.