mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-09-23 06:39:14 +00:00
make Dockerfile architecture independent
This commit is contained in:
parent
59e6a16591
commit
cf9baf5ec6
16
Dockerfile
16
Dockerfile
@ -1,10 +1,12 @@
|
|||||||
FROM ubuntu:latest
|
FROM golang:1.13-buster
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y wget default-jre software-properties-common git
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends wget default-jre software-properties-common git \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN add-apt-repository ppa:gophers/archive
|
#RUN add-apt-repository ppa:gophers/archive
|
||||||
RUN apt-get update
|
#RUN apt-get update
|
||||||
RUN apt-get install -y golang-1.11-go
|
#RUN apt-get install -y golang-1.11-go
|
||||||
|
|
||||||
|
|
||||||
# ARM
|
# ARM
|
||||||
@ -16,7 +18,7 @@ RUN apt-get install -y golang-1.11-go
|
|||||||
# && tar -C /user/local -xzf /tmp/go1.12.5.linux-amd64.tar.gz \
|
# && tar -C /user/local -xzf /tmp/go1.12.5.linux-amd64.tar.gz \
|
||||||
# && rm -rf /tmp/go1.12.5.linux-amd64.tar.gz
|
# && rm -rf /tmp/go1.12.5.linux-amd64.tar.gz
|
||||||
|
|
||||||
ENV PATH /usr/lib/go-1.11/bin/:$PATH
|
#ENV PATH /usr/lib/go-1.11/bin/:$PATH
|
||||||
|
|
||||||
|
|
||||||
RUN wget -P /tmp/ https://github.com/AsamK/signal-cli/releases/download/v0.6.2/signal-cli-0.6.2.tar.gz \
|
RUN wget -P /tmp/ https://github.com/AsamK/signal-cli/releases/download/v0.6.2/signal-cli-0.6.2.tar.gz \
|
||||||
@ -33,4 +35,4 @@ ENV PATH /tmp/signal-cli-rest-api-src/:/usr/bin/signal-cli-0.6.2/bin/:$PATH
|
|||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
ENTRYPOINT ["main"]
|
ENTRYPOINT ["main"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user