no apk in ubunutu image - apt-get
This commit is contained in:
parent
885533e535
commit
8048f6e081
|
|
@ -2,7 +2,13 @@ FROM ubuntu:20.04
|
||||||
LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
|
LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
|
||||||
|
|
||||||
# We need root certificates to deal with teams api over https
|
# We need root certificates to deal with teams api over https
|
||||||
RUN apk --no-cache add ca-certificates go git musl-dev
|
RUN apt-get update \
|
||||||
|
&& apt-get install --no-install-recommends -y \
|
||||||
|
curl \
|
||||||
|
ca-certificates \
|
||||||
|
go \
|
||||||
|
git \
|
||||||
|
musl-dev
|
||||||
|
|
||||||
COPY build/* /
|
COPY build/* /
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,10 @@ FROM ubuntu:20.04
|
||||||
LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
|
LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
|
||||||
|
|
||||||
# We need root certificates to deal with teams api over https
|
# We need root certificates to deal with teams api over https
|
||||||
RUN apk --no-cache add curl
|
RUN apt-get update \
|
||||||
RUN apk --no-cache add ca-certificates
|
&& apt-get install --no-install-recommends -y \
|
||||||
|
curl \
|
||||||
|
ca-certificates
|
||||||
|
|
||||||
COPY build/* /
|
COPY build/* /
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ FROM ubuntu:20.04
|
||||||
LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
|
LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
|
||||||
|
|
||||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install --no-install-recommends -y \
|
&& apt-get install --no-install-recommends -y \
|
||||||
apt-utils \
|
apt-utils \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,7 @@ go get -u github.com/derekparker/delve/cmd/dlv
|
||||||
* Add following dependencies to the `Dockerfile`
|
* Add following dependencies to the `Dockerfile`
|
||||||
|
|
||||||
```
|
```
|
||||||
RUN apk --no-cache add go git musl-dev
|
RUN apt-get update && apt-get install -y go git musl-dev
|
||||||
RUN go get github.com/derekparker/delve/cmd/dlv
|
RUN go get github.com/derekparker/delve/cmd/dlv
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apk add --no-cache \
|
apt-get add --no-cache \
|
||||||
alpine-sdk \
|
alpine-sdk \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
|
|
@ -25,8 +25,7 @@ RUN \
|
||||||
&& \
|
&& \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/root/.cache \
|
/root/.cache \
|
||||||
/tmp/* \
|
/tmp/*
|
||||||
/var/cache/apk/*
|
|
||||||
|
|
||||||
COPY requirements.txt /
|
COPY requirements.txt /
|
||||||
COPY start_server.sh /
|
COPY start_server.sh /
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ kubectl exec \
|
||||||
)" \
|
)" \
|
||||||
-- \
|
-- \
|
||||||
sh -c '
|
sh -c '
|
||||||
apk add --no-cache socat;
|
apt-get add --no-cache socat;
|
||||||
pkill socat;
|
pkill socat;
|
||||||
socat -v TCP-LISTEN:1234,reuseaddr,fork,su=nobody TCP:169.254.169.254:80
|
socat -v TCP-LISTEN:1234,reuseaddr,fork,su=nobody TCP:169.254.169.254:80
|
||||||
' \
|
' \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue