Skip to content

Commit fc3984f

Browse files
authored
Merge pull request #306 from calloc134/feature/add-dockerfile
2 parents e037ef8 + f1f0d52 commit fc3984f

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# AlterISOをビルドするためのDockerfile
2+
3+
# Buildステージ
4+
FROM golang:1.22.3 AS build
5+
6+
WORKDIR /alteriso5
7+
8+
COPY ./alteriso5 .
9+
10+
RUN go mod download
11+
RUN go build -o alteriso5
12+
13+
# 実行ステージ
14+
FROM archlinux:base-20240101.0.204074 AS run
15+
16+
COPY . .
17+
COPY --from=build /alteriso5/alteriso5 /usr/bin/alteriso5
18+
19+
WORKDIR /
20+
21+
RUN chmod +x ./usr/bin/alteriso5
22+
23+
RUN pacman -Sy --noconfirm
24+
RUN pacman -S --noconfirm archiso arch-install-scripts
25+
26+
ENTRYPOINT ["/usr/bin/alteriso5"]
27+
CMD ["build", "./profile"]

0 commit comments

Comments
 (0)