mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-07 13:09:51 +00:00
add docker support
This commit is contained in:
parent
382b41bae8
commit
ec25d092d7
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@ -0,0 +1,5 @@
|
||||
vendor
|
||||
ui/node_modules
|
||||
pb_data
|
||||
build
|
||||
.vscode
|
@ -1,17 +1,8 @@
|
||||
FROM node:20-alpine as build-ui
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ../. /app/
|
||||
|
||||
RUN npm --prefix=./ui ci && npm --prefix=./ui run build
|
||||
|
||||
FROM golang:1.22-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ../. /app/
|
||||
COPY --from=build-ui /app/ui/dist /app/ui/
|
||||
|
||||
RUN go build -o certimate
|
||||
|
||||
|
3
go.mod
3
go.mod
@ -18,6 +18,8 @@ require (
|
||||
golang.org/x/crypto v0.26.0
|
||||
)
|
||||
|
||||
require github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
||||
|
||||
require (
|
||||
github.com/AlecAivazis/survey/v2 v2.3.7 // indirect
|
||||
github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.4 // indirect
|
||||
@ -78,7 +80,6 @@ require (
|
||||
github.com/modern-go/reflect2 v1.0.2 // indirect
|
||||
github.com/ncruces/go-strftime v0.1.9 // indirect
|
||||
github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b // indirect
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
||||
github.com/spf13/cast v1.6.0 // indirect
|
||||
github.com/spf13/cobra v1.8.1 // indirect
|
||||
github.com/spf13/pflag v1.0.5 // indirect
|
||||
|
Loading…
x
Reference in New Issue
Block a user