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