Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit 92bdfcb

Browse files
djones6helenmastersKamran64
authored
Swift: Preserve build path between build and run stages (#733)
* Preserve build path between build and run stages Avoids swift `#file` paths being invalid when used to look up relative paths to resources. * Update README.md * Update stack.yaml Co-authored-by: Helen Masters <helen_postlethwaite@uk.ibm.com> Co-authored-by: Kamran Shamsi <45264227+Kamran64@users.noreply.github.com>
1 parent 7507c7d commit 92bdfcb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

incubator/swift/image/project/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN apt-get update \
88
&& echo 'Finished installing dependencies'
99

1010
# Install user-app dependencies
11-
WORKDIR "/project/user-app"
11+
WORKDIR "/project"
1212
COPY ./user-app ./
1313

1414
# Build project, and discover executable name
@@ -25,8 +25,8 @@ RUN apt-get update \
2525
&& echo 'Finished installing dependencies'
2626

2727
WORKDIR "/project"
28-
COPY --from=builder /project/user-app/.build /project/.build
29-
COPY --from=builder /project/user-app/run.sh /project
28+
COPY --from=builder /project/.build /project/.build
29+
COPY --from=builder /project/run.sh /project
3030

3131
ENV PORT 8080
3232
EXPOSE 8080

incubator/swift/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Swift
2-
version: 0.2.5
2+
version: 0.2.6
33
description: Appsody runtime for Swift applications
44
license: Apache-2.0
55
language: swift

0 commit comments

Comments
 (0)