diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..42f310e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM golang:1.18.2-alpine as GOBUILDER +WORKDIR /wd +COPY go.mod go.sum ./ +COPY app ./app +RUN go mod tidy +RUN go build -o app.exe ./app + +FROM node:18.1-alpine as NODEBUILDER +WORKDIR /wd +COPY . . +RUN npm install +RUN npx vite build + +FROM alpine:3.16 +WORKDIR /wd +COPY --from=GOBUILDER /wd/app.exe app.exe +COPY --from=NODEBUILDER /wd/dist dist +ENTRYPOINT [ "/wd/app.exe" ] + diff --git a/src/components/CharacterRoulette.vue b/src/components/CharacterRoulette.vue index 8e48063..7b57d01 100644 --- a/src/components/CharacterRoulette.vue +++ b/src/components/CharacterRoulette.vue @@ -7,7 +7,7 @@