Skip to content

Commit

Permalink
refactor: modified build container to use golang:1-alpine (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmypw authored Oct 25, 2024
1 parent e9371c9 commit 93cbaff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM luzifer/archlinux as builder
FROM golang:1-alpine AS builder

ENV CGO_ENABLED=0 \
GOPATH=/go \
Expand All @@ -8,12 +8,11 @@ COPY . /go/src/github.com/Luzifer/ots
WORKDIR /go/src/github.com/Luzifer/ots

RUN set -ex \
&& pacman --noconfirm -Syy \
&& apk update && apk add \
curl \
git \
go \
make \
nodejs-lts-hydrogen \
nodejs-lts \
npm \
tar \
unzip \
Expand Down
7 changes: 3 additions & 4 deletions Dockerfile.minimal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM luzifer/archlinux as builder
FROM golang:1-alpine AS builder

ENV CGO_ENABLED=0 \
GOPATH=/go \
Expand All @@ -8,12 +8,11 @@ COPY . /go/src/github.com/Luzifer/ots
WORKDIR /go/src/github.com/Luzifer/ots

RUN set -ex \
&& pacman --noconfirm -Syy \
&& apk update && apk add \
curl \
git \
go \
make \
nodejs-lts-hydrogen \
nodejs-lts \
npm \
tar \
unzip \
Expand Down

0 comments on commit 93cbaff

Please sign in to comment.