forked from metalogical/BigFiles
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerFile
More file actions
29 lines (24 loc) · 873 Bytes
/
DockerFile
File metadata and controls
29 lines (24 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM golang:1.24 as BUILDER
WORKDIR /home
COPY . .
RUN go get github.com/akrylysov/algnhsa && \
go get github.com/sirupsen/logrus && \
go build ./main.go
FROM openeuler/openeuler:24.03
LABEL maintainer="Zhou Yi 1123678689@qq.com"
# 安装依赖工具
RUN dnf install -y git wget tar gzip && \
# 下载git-lfs
wget https://github.com/git-lfs/git-lfs/releases/download/v3.3.0/git-lfs-linux-amd64-v3.3.0.tar.gz && \
tar -xzf git-lfs-linux-amd64-v3.3.0.tar.gz && \
cd git-lfs-3.3.0 && \
./install.sh && \
rm -rf git-lfs-* && \
dnf clean all
RUN useradd -s /bin/bash BigFiles
USER BigFiles
WORKDIR /home/BigFiles
COPY --chown=BigFiles:group --from=BUILDER /home/main /home/BigFiles/main
COPY --chown=BigFiles:group --from=BUILDER /home/scripts/lfsNameQuery.py /home/BigFiles/lfsNameQuery.py
EXPOSE 5000
ENTRYPOINT ["/home/BigFiles/main"]