Skip to content

Commit

Permalink
chore: set docker mtu to 1440
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
  • Loading branch information
andrewrynhard committed Jul 11, 2019
1 parent f5305ac commit 54d6f32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ services:
privileged: true
command:
- --dns=8.8.8.8
- --dns=8.8.4.4
- --mtu=1440
volumes:
- name: docker-socket
path: /var/run
Expand Down
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM alpine:3.9 AS base
RUN sed -i -e 's/dl-cdn.alpinelinux.org/ewr.edge.kernel.org/g' /etc/apk/repositories \
&& apk add build-base ca-certificates go
RUN apk add build-base ca-certificates go
WORKDIR /src
COPY ./go.mod ./
COPY ./go.sum ./
Expand Down Expand Up @@ -37,8 +36,7 @@ ARG TARGETPLATFORM
ENV TARGETPLATFORM ${TARGETPLATFORM}
ARG BUILDPLATFORM
ENV BUILDPLATFORM ${BUILDPLATFORM}
RUN sed -i -e 's/dl-cdn.alpinelinux.org/ewr.edge.kernel.org/g' /etc/apk/repositories \
&& apk --no-cache add bash ca-certificates
RUN apk --no-cache add bash ca-certificates
RUN [ "ln", "-svf", "/bin/bash", "/bin/sh" ]
COPY --from=bldr /bldr /bldr
WORKDIR /pkg
Expand Down

0 comments on commit 54d6f32

Please sign in to comment.