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"]
|
||||
Reference in New Issue
Block a user