Working on docker

This commit is contained in:
2022-04-17 18:58:58 -04:00
parent e858a217fe
commit 41dab0cd30
15 changed files with 792 additions and 20 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM swift as build
WORKDIR /build
COPY ./Package.* ./
RUN swift package resolve
COPY . .
RUN swift build --enable-test-discovery -c release -Xswiftc -g
# Run image
FROM swift
WORKDIR /run
COPY --from=build /build/.build/release /run