-
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.
Merge pull request #7 from traPtitech/update-deprecates
- Loading branch information
Showing
10 changed files
with
63 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
FROM golang:1.22.0-alpine AS build | ||
ENV CGO_ENABLED=0 | ||
ENV DOCKERIZE_VERSION v0.6.1 | ||
RUN apk add --update --no-cache git && \ | ||
apk --update add tzdata && \ | ||
cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \ | ||
apk del tzdata && \ | ||
rm -rf /var/cache/apk/* | ||
FROM golang:1.23.0-alpine AS build | ||
|
||
WORKDIR /app | ||
RUN go install github.com/air-verse/air@latest | ||
|
||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
CMD ["air"] | ||
COPY . . | ||
RUN go build -o app | ||
|
||
FROM alpine:3 AS runtime | ||
|
||
WORKDIR /app | ||
COPY --from=build /app/app . | ||
|
||
RUN mkdir -p /app/data | ||
|
||
CMD ["./app"] |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SET | ||
character_set_server = 'utf8mb4'; | ||
|
||
SET | ||
collation_server = 'utf8mb4_general_ci'; |
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,6 +1,6 @@ | ||
module github.com/traPtitech/booQ-v3 | ||
|
||
go 1.22 | ||
go 1.23 | ||
|
||
require ( | ||
github.com/go-ozzo/ozzo-validation/v4 v4.3.0 | ||
|
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 +1 @@ | ||
docker-compose build | ||
docker compose build |
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 +1 @@ | ||
docker-compose -f docker/test/docker-compose.yml up --abort-on-container-exit | ||
docker compose -f docker/test/docker-compose.yml up --abort-on-container-exit |
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 +1 @@ | ||
docker-compose up | ||
docker compose up |