refactor: modified build container to use golang:1-alpine (#198)
This commit is contained in:
parent
e9371c90a0
commit
93cbaff2e6
2 changed files with 6 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM luzifer/archlinux as builder
|
FROM golang:1-alpine AS builder
|
||||||
|
|
||||||
ENV CGO_ENABLED=0 \
|
ENV CGO_ENABLED=0 \
|
||||||
GOPATH=/go \
|
GOPATH=/go \
|
||||||
|
@ -8,12 +8,11 @@ COPY . /go/src/github.com/Luzifer/ots
|
||||||
WORKDIR /go/src/github.com/Luzifer/ots
|
WORKDIR /go/src/github.com/Luzifer/ots
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& pacman --noconfirm -Syy \
|
&& apk update && apk add \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
go \
|
|
||||||
make \
|
make \
|
||||||
nodejs-lts-hydrogen \
|
nodejs-lts \
|
||||||
npm \
|
npm \
|
||||||
tar \
|
tar \
|
||||||
unzip \
|
unzip \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM luzifer/archlinux as builder
|
FROM golang:1-alpine AS builder
|
||||||
|
|
||||||
ENV CGO_ENABLED=0 \
|
ENV CGO_ENABLED=0 \
|
||||||
GOPATH=/go \
|
GOPATH=/go \
|
||||||
|
@ -8,12 +8,11 @@ COPY . /go/src/github.com/Luzifer/ots
|
||||||
WORKDIR /go/src/github.com/Luzifer/ots
|
WORKDIR /go/src/github.com/Luzifer/ots
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& pacman --noconfirm -Syy \
|
&& apk update && apk add \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
go \
|
|
||||||
make \
|
make \
|
||||||
nodejs-lts-hydrogen \
|
nodejs-lts \
|
||||||
npm \
|
npm \
|
||||||
tar \
|
tar \
|
||||||
unzip \
|
unzip \
|
||||||
|
|
Loading…
Reference in a new issue