hummingbird-project / hummingbird-examples

Examples demonstrating various aspects of the Hummingbird swift server framework
Apache License 2.0
90 stars 19 forks source link

Dockerfile build failing #72

Closed jalberty2018 closed 7 months ago

jalberty2018 commented 7 months ago

RUN cp "$(swift build --package-path /build -c release --show-bin-path)/Server" ./

Dockerfile expects "Server" as executable name

Name of compiled executable is "App" as defined in Package.swift

targets: [ .executableTarget( name: "App",

Solution : change name in Dockerfile or Package.swift

ps. change "vapor user" in "hummingbird user" in Dockerfile :-)

adam-fowler commented 7 months ago

Oh I forgot to update the Dockerfiles for many of the examples when merging them into one target.

adam-fowler commented 7 months ago

73 should fix this. Those docker files were ancient. They referenced swift 5.3