-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (29 loc) · 1.24 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM node:10.24-alpine3.11
# First dummy image
ENV GOROOT="/usr/local/go"
ENV GOPATH="$HOME/go"
ENV PATH="$PATH:$GOPATH/bin:$GOROOT/bin"
ENV APPPATH="$GOPATH/src/github.com/alice-lg"
COPY --from=golang:1.16.5-alpine3.13 ${GOROOT} ${GOROOT}
RUN apk add --update --no-cache git make g++ musl-dev python2 && \
npm install --global gulp-cli && \
mkdir -p $GOPATH/bin $GOPATH/pkg $APPPATH && \
cd $APPPATH && \
go get github.com/GeertJohan/go.rice && \
go get github.com/GeertJohan/go.rice/rice && \
git clone https://github.com/alice-lg/alice-lg.git && \
cd alice-lg && \
make
## Secound primary image
FROM alpine:3.12
LABEL org.opencontainers.image.created="Thu, 11 Mar 2021 23:06:13 +0000"
LABEL org.opencontainers.image.authors="Tim Oliver Rabl <info@timrabl.de>"
LABEL org.opencontainers.image.url="https://github.com/timrabl/alice-lg.git"
LABEL org.opencontainers.image.version="4.2.0"
LABEL org.opencontainers.image.title="alice-lg"
LABEL org.opencontainers.image.description="Your docker based lookingglass."
ENV GOPATH="$HOME/go"
ENV PATH="$APP/bin:${PATH}"
ENV APPPATH="$GOPATH/src/github.com/alice-lg"
COPY --from=0 $APPPATH/alice-lg/bin/alice-lg-linux-amd64 /usr/local/bin/alice-lg-linux-amd64
CMD ["alice-lg-linux-amd64"]