From 167e340104717eebd9cd7dd8df30ee98a06157b9 Mon Sep 17 00:00:00 2001 From: navigaid Date: Fri, 14 Oct 2022 04:29:01 +0800 Subject: [PATCH] init btwiuse/arch:ufo --- .devcontainer/Dockerfile | 14 ++++++++++++++ Dockerfile | 1 + 2 files changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index aba6f92..3d23071 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,3 +1,17 @@ +FROM btwiuse/arch:golang AS builder + +RUN pacman -Syu --noconfirm --overwrite='*' + +RUN git clone https://github.com/webteleport/ufo /webteleport/ufo + +WORKDIR /webteleport/ufo + +RUN go mod tidy + +RUN CGO_ENABLED=0 GOBIN=/usr/local/bin go install ./cmd/ufo + FROM btwiuse/arch RUN pacman -Syu --noconfirm --overwrite='*' docker neofetch + +COPY --from=builder /usr/local/bin/ufo /usr/local/bin/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..74e834f --- /dev/null +++ b/Dockerfile @@ -0,0 +1 @@ +FROM btwiuse/arch:ufo