Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Alpine as base Docker image #119

Merged
merged 2 commits into from
Oct 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions buildscripts/apiserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
# maya api server's releases.
#

FROM ubuntu:16.04
FROM alpine:3.6

# TODO: The following env variables should be auto detected.
ENV MAYA_API_SERVER_NETWORK="eth0"

RUN apt-get update && apt-get install -y \
RUN apk add --no-cache \
iproute2 \
curl \
net-tools \
watch \
&& rm -rf /var/lib/apt/lists/*
mii-tool \
procps \
libc6-compat

RUN mkdir -p /etc/apiserver/orchprovider
RUN mkdir -p /etc/apiserver/specs
Expand Down
4 changes: 3 additions & 1 deletion buildscripts/mayactl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# This Dockerfile builds a recent maya container with latest code
#

FROM ubuntu:16.04
FROM alpine:3.6

RUN apk --no-cache add libc6-compat

COPY maya /usr/local/bin

Expand Down