mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 13:39:53 +00:00
Add docker support
This commit is contained in:
parent
76e6b9f20c
commit
8c684e3233
2
.github/workflows/push_image.yml
vendored
2
.github/workflows/push_image.yml
vendored
@ -30,6 +30,6 @@ jobs:
|
|||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm/v8
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: registry.cn-shanghai.aliyuncs.com/usual2970/certimate:latest
|
tags: registry.cn-shanghai.aliyuncs.com/usual2970/certimate:latest
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM node:20-alpine
|
FROM node:20-alpine as build-ui
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@ -11,6 +11,7 @@ FROM golang:1.22-alpine
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ../. /app/
|
COPY ../. /app/
|
||||||
|
COPY from=build-ui /app/ui/dist /app/ui/
|
||||||
|
|
||||||
RUN go build -o certimate
|
RUN go build -o certimate
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user