feat: Begins using swift argument parser and creating cli client dependency
All checks were successful
CI / Run Tests (push) Successful in 4m27s
All checks were successful
CI / Run Tests (push) Successful in 4m27s
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# Used this to build the release version of the image.
|
||||
# Build the executable
|
||||
FROM swift:5.10 AS build
|
||||
ARG SWIFT_IMAGE_VERSION="5.10"
|
||||
|
||||
FROM swift:${SWIFT_IMAGE_VERSION} AS build
|
||||
WORKDIR /build
|
||||
COPY ./Package.* ./
|
||||
RUN swift package resolve
|
||||
@@ -8,7 +10,6 @@ COPY . .
|
||||
RUN swift build -c release -Xswiftc -g
|
||||
|
||||
# Run image
|
||||
FROM swift:5.10-slim
|
||||
WORKDIR /run
|
||||
COPY --from=build /build/.build/release/dewpoint-controller /run
|
||||
CMD ["/bin/bash", "-xc", "./dewpoint-controller"]
|
||||
FROM swift:${SWIFT_IMAGE_VERSION}-slim
|
||||
COPY --from=build /build/.build/release/dewpoint-controller /usr/local/bin
|
||||
CMD ["/bin/bash", "-xc", "/usr/local/bin/dewpoint-controller run"]
|
||||
|
||||
Reference in New Issue
Block a user