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

Alpine #2

Open
Nonchalant opened this issue Mar 14, 2018 · 1 comment
Open

Alpine #2

Nonchalant opened this issue Mar 14, 2018 · 1 comment

Comments

@Nonchalant
Copy link
Owner

FROM ubuntu:16.04 as builder
MAINTAINER [email protected]

# Install related packages
RUN apt-get -q update && \
    apt-get -q install -y \
    curl \
    && rm -r /var/lib/apt/lists/*

# Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little
ARG SWIFT_PLATFORM=ubuntu16.04
ARG SWIFT_BRANCH=swift-4.0.3-release
ARG SWIFT_VERSION=swift-4.0.3-RELEASE

ENV SWIFT_PLATFORM=$SWIFT_PLATFORM \
    SWIFT_BRANCH=$SWIFT_BRANCH \
    SWIFT_VERSION=$SWIFT_VERSION

# Download Swift package, then unpack, cleanup and execute permissions for foundation libs
RUN SWIFT_URL=https://swift.org/builds/$SWIFT_BRANCH/$(echo "$SWIFT_PLATFORM" | tr -d .)/$SWIFT_VERSION/$SWIFT_VERSION-$SWIFT_PLATFORM.tar.gz \
    && curl -fSsL $SWIFT_URL -o swift.tar.gz \
    && tar -xzf swift.tar.gz --directory / --strip-components=1 \
    && rm -r swift.tar.gz \
    && chmod -R o+r /usr/lib/swift


FROM alpine:latest
MAINTAINER [email protected]

# Install related packages
RUN apk --update add \
    curl-dev \
    libedit-dev \
    icu-dev \
    libxml2-dev \
    && rm -r /var/cache/apk/*

COPY --from=builder /usr/lib/swift /usr/lib/swift
RUN chmod -R o+r /usr/lib/swift
@Nonchalant
Copy link
Owner Author

standard_init_linux.go:195: exec user process caused "no such file or directory"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant