Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile.server fixes #1003

Merged
merged 4 commits into from
Jun 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
debugging and shi
garrettladley committed Jun 11, 2024
commit 8c3e2125182adf4d227d4a02260b3eb6de34a73e
1 change: 0 additions & 1 deletion backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
tests/
docs/
*.md
*.templ
3 changes: 1 addition & 2 deletions backend/Dockerfile.server
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@ RUN apk add --no-cache git
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
@@ -15,4 +14,4 @@ FROM scratch
COPY --from=builder /app/bin/sac /sac

EXPOSE 8080
ENTRYPOINT [ "./sac" ]
ENTRYPOINT [ "/sac" ]
2 changes: 2 additions & 0 deletions backend/main.go
Original file line number Diff line number Diff line change
@@ -18,6 +18,8 @@ import (
"github.com/GenerateNU/sac/backend/constants"
"github.com/GenerateNU/sac/backend/database"
"github.com/GenerateNU/sac/backend/database/store"

// TODO: disable for prod with build tag
_ "github.com/GenerateNU/sac/backend/docs"
"github.com/GenerateNU/sac/backend/integrations"
"github.com/GenerateNU/sac/backend/integrations/email"