mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-14 16:49:10 +00:00
start redoing ci/cd and devops
This commit is contained in:
parent
460770407a
commit
ab9fe30b42
37 changed files with 418 additions and 825 deletions
25
hack/dockerfiles/ui.Dockerfile
Normal file
25
hack/dockerfiles/ui.Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
|||
FROM node:14-alpine AS base
|
||||
WORKDIR /src
|
||||
|
||||
#
|
||||
# Builder
|
||||
#
|
||||
FROM base AS builder
|
||||
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
RUN yarn ui:build
|
||||
|
||||
RUN yarn install --frozen-lockfile --prod
|
||||
|
||||
#
|
||||
# Output layer
|
||||
#
|
||||
FROM base AS output
|
||||
|
||||
COPY --from=builder /src/.next /src/node_modules ./
|
||||
|
||||
EXPOSE 3000
|
||||
CMD yarn ui:prod
|
|
@ -13,6 +13,7 @@ import (
|
|||
|
||||
botjoin "github.com/roleypoly/roleypoly/src/functions/bot-join"
|
||||
createsession "github.com/roleypoly/roleypoly/src/functions/create-session"
|
||||
helloworld "github.com/roleypoly/roleypoly/src/functions/hello-world"
|
||||
loginbounce "github.com/roleypoly/roleypoly/src/functions/login-bounce"
|
||||
loginhandler "github.com/roleypoly/roleypoly/src/functions/login-handler"
|
||||
sessiondata "github.com/roleypoly/roleypoly/src/functions/session-data"
|
||||
|
@ -24,6 +25,7 @@ var mappings map[string]http.HandlerFunc = map[string]http.HandlerFunc{
|
|||
"/login-bounce": loginbounce.LoginBounce,
|
||||
"/login-handler": loginhandler.LoginHandler,
|
||||
"/create-session": createsession.CreateSession,
|
||||
"/hello-world": helloworld.HelloWorld,
|
||||
}
|
||||
|
||||
var port string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue