1# You can set the Swift version to what you need for your app. Versions can be found here: https://hub.docker.com/_/swift
2FROM swift:4.2 as builder
4# For local build, add `--build-arg environment=local`
8RUN apt-get -qq update && apt-get -q -y install \
10 && rm -r /var/lib/apt/lists/*
13RUN mkdir -p /build/lib && cp -R /usr/lib/swift/linux/*.so /build/lib
14RUN swift build -c release && mv `swift build -c release --show-bin-path` /build/bin
18RUN apt-get -qq update && apt-get install -y \
19 libicu55 libxml2 libbsd0 libcurl3 libatomic1 \
21 && rm -r /var/lib/apt/lists/*
23COPY --from=builder /build/bin/Run .
24COPY --from=builder /build/lib/* /usr/lib/
25COPY --from=builder /app/Public ./Public
26# Uncommand the next line if you are using Leaf
27#COPY --from=builder /app/Resources ./Resources
29ENTRYPOINT ./Run serve --env $ENVIRONMENT --hostname 0.0.0.0 --port 80
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list