start redoing ci/cd and devops

This commit is contained in:
41666 2020-12-02 21:44:49 -05:00
parent 460770407a
commit ab9fe30b42
37 changed files with 418 additions and 825 deletions

View 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

View file

@ -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