forked from TechEmpower/FrameworkBenchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Shagit Ziganshin
committed
Jul 4, 2024
1 parent
8438981
commit efde950
Showing
5 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule vapor-swifql-ikiga
added at
674f96
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# ================================ | ||
# Build image | ||
# ================================ | ||
FROM swift:5.10 as build | ||
WORKDIR /build | ||
|
||
# Copy entire repo into container | ||
COPY ./vapor-swifql-ikiga . | ||
|
||
# Compile with optimizations | ||
RUN swift build \ | ||
-c release \ | ||
-Xswiftc -enforce-exclusivity=unchecked | ||
|
||
# ================================ | ||
# Run image | ||
# ================================ | ||
FROM swift:5.10-slim | ||
WORKDIR /run | ||
|
||
# Copy build artifacts | ||
COPY --from=build /build/.build/release /run | ||
|
||
# Copy Swift runtime libraries | ||
COPY --from=build /usr/lib/swift/ /usr/lib/swift/ | ||
|
||
EXPOSE 8080 | ||
|
||
ENTRYPOINT ["./app", "serve", "--env", "production", "--hostname", "0.0.0.0", "--port", "8080"] |