Skip to content

Commit f1f0d52

Browse files
committed
build: ビルドを行うコンテナを作成
1 parent ea5038f commit f1f0d52

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

Dockerfile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,17 @@ RUN go mod download
1111
RUN go build -o alteriso5
1212

1313
# 実行ステージ
14-
# FROM archlinux:base-20240101.0.204074 AS run
14+
FROM archlinux:base-20240101.0.204074 AS run
1515

16-
# COPY --from=build /alteriso5/alteriso5 /usr/bin/alteriso5
16+
COPY . .
17+
COPY --from=build /alteriso5/alteriso5 /usr/bin/alteriso5
1718

18-
# ENTRYPOINT ["/usr/bin/alteriso5"]
19+
WORKDIR /
1920

20-
# CMD ["build", "./profile"]
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)