feat: working on docker build
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
# Build the executable
|
||||
FROM swift as build
|
||||
FROM swift:5.10 AS build
|
||||
WORKDIR /build
|
||||
COPY ./Package.* ./
|
||||
RUN swift package resolve
|
||||
@@ -8,6 +8,6 @@ COPY . .
|
||||
RUN swift build --enable-test-discovery -c release -Xswiftc -g
|
||||
|
||||
# Run image
|
||||
FROM swift
|
||||
FROM swift:5.10
|
||||
WORKDIR /run
|
||||
COPY --from=build /build/.build/release /run
|
||||
|
||||
Reference in New Issue
Block a user