FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
aidea-server/Dockerfile at main · SHIFT-R/aidea-server · GitHub
SHIFT-R
/
aidea-server
Public
forked from
mylxsw/aidea-server
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
aidea-server
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (17 loc) · 655 Bytes
Breadcrumbs
aidea-server
/
Dockerfile
Copy path
File metadata and controls
22 lines (17 loc) · 655 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
build stage
FROM
golang:1.21 AS builder
ENV
GOPROXY=https://goproxy.io,direct
WORKDIR
/data
COPY
go.mod go.sum ./
RUN
go mod download
COPY
. .
RUN
go build -ldflags
"-s -w"
-o /data/bin/aidea-server cmd/main.go
#
final stage
FROM
ubuntu:22.04
ENV
TZ=Asia/Shanghai
RUN
apt-get -y update && DEBIAN_FRONTEND=
"nointeractive"
apt install -y tzdata ca-certificates --no-install-recommends && rm -r /var/lib/apt/lists/*
RUN
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR
/data
COPY
--from=builder /data/bin/aidea-server /usr/local/bin/
EXPOSE
8080
ENTRYPOINT
[
"/usr/local/bin/aidea-server"
,
"--conf"
,
"/etc/aidea.yaml"
]
Back
|
FazBrowse Home
|
New Git URL