docs/code-samples/community/serving/helloworld-swift/Dockerfile

14 lines
300 B
Docker

# Use the official Swift image.
# https://hub.docker.com/_/swift
FROM swift:4.2
# Copy local code to the container image.
WORKDIR /app
COPY . .
# Install dependencies and build.
RUN swift build -c release
# Run the web service on container startup.
CMD [ ".build/release/HelloSwift"]