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.
|
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
|
||||||
.target(
|
.target(
|
||||||
name: "SwiftyCar",
|
name: "SwiftyCar",
|
||||||
dependencies: ["SwiftyGPIO", .product(name: "GRPC", package: "grpc-swift"), "SwiftRPLidar", "Swift2dCar"]),
|
dependencies: ["SwiftyGPIO", .product(name: "GRPC", package: "grpc-swift"), "SwiftRPLidar", "SwiftSerial", "Swift2dCar"]),
|
||||||
.testTarget(
|
.testTarget(
|
||||||
name: "SwiftyCarTests",
|
name: "SwiftyCarTests",
|
||||||
dependencies: ["SwiftyCar"]),
|
dependencies: ["SwiftyCar"]),
|
||||||
|
|||||||
Reference in New Issue
Block a user