Add Dockerfile, fix package file
This commit is contained in:
9
SwiftyCar/Dockerfile
Normal file
9
SwiftyCar/Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM vato.ddns.net:8083/swift:latest as builder
|
||||
WORKDIR /root
|
||||
COPY . .
|
||||
RUN swift build -c release
|
||||
|
||||
FROM vato.ddns.net:8083/swift:slim
|
||||
WORKDIR /root
|
||||
COPY --from=builder /root .
|
||||
CMD [".build/x86_64-unknown-linux/release/docker-test"]
|
||||
@@ -22,7 +22,7 @@ let package = Package(
|
||||
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
|
||||
.target(
|
||||
name: "SwiftyCar",
|
||||
dependencies: ["SwiftyGPIO", .product(name: "GRPC", package: "grpc-swift"), "SwiftRPLidar", "Swift2dCar"]),
|
||||
dependencies: ["SwiftyGPIO", .product(name: "GRPC", package: "grpc-swift"), "SwiftRPLidar", "SwiftSerial", "Swift2dCar"]),
|
||||
.testTarget(
|
||||
name: "SwiftyCarTests",
|
||||
dependencies: ["SwiftyCar"]),
|
||||
|
||||
Reference in New Issue
Block a user