mirror of
https://github.com/Unkn0wnCat/calapi.git
synced 2025-04-28 09:36:20 +02:00
Switch Docker base image to Ubuntu
This commit is contained in:
parent
ed63718de0
commit
6d7a998c45
3 changed files with 9 additions and 7 deletions
|
@ -18,9 +18,9 @@ RUN --mount=type=cache,target=~/.cache/go-build,type=cache,target=~/go/pkg/mod C
|
||||||
##
|
##
|
||||||
## Package
|
## Package
|
||||||
##
|
##
|
||||||
FROM alpine:3.15
|
FROM ubuntu:lunar
|
||||||
|
|
||||||
RUN apk add gcompat libgcc libstdc++
|
#RUN apk add gcompat libgcc libstdc++
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
|
@ -10,5 +10,7 @@ services:
|
||||||
- local
|
- local
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
networks:
|
networks:
|
||||||
local:
|
local:
|
||||||
|
|
|
@ -7,18 +7,18 @@ package graph
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"github.com/99designs/gqlgen/graphql"
|
|
||||||
"github.com/Unkn0wnCat/calapi/internal/auth"
|
|
||||||
"github.com/Unkn0wnCat/calapi/internal/logger"
|
|
||||||
"github.com/go-chi/chi/middleware"
|
|
||||||
"go.uber.org/zap"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/99designs/gqlgen/graphql"
|
||||||
"github.com/Unkn0wnCat/calapi/graph/model"
|
"github.com/Unkn0wnCat/calapi/graph/model"
|
||||||
|
"github.com/Unkn0wnCat/calapi/internal/auth"
|
||||||
"github.com/Unkn0wnCat/calapi/internal/database"
|
"github.com/Unkn0wnCat/calapi/internal/database"
|
||||||
"github.com/Unkn0wnCat/calapi/internal/db_model"
|
"github.com/Unkn0wnCat/calapi/internal/db_model"
|
||||||
|
"github.com/Unkn0wnCat/calapi/internal/logger"
|
||||||
|
"github.com/go-chi/chi/middleware"
|
||||||
"github.com/objectbox/objectbox-go/objectbox"
|
"github.com/objectbox/objectbox-go/objectbox"
|
||||||
|
"go.uber.org/zap"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Events is the resolver for the events field.
|
// Events is the resolver for the events field.
|
||||||
|
|
Loading…
Add table
Reference in a new issue