File tree 3 files changed +16
-3
lines changed
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Ignore build artifacts
2
2
bin /
3
3
obj /
4
+ out /
5
+ nupkg /
6
+ artifacts /
Original file line number Diff line number Diff line change @@ -5,14 +5,21 @@ FROM ${BASE_IMAGE} AS build
5
5
6
6
WORKDIR /app
7
7
8
+ COPY *.props .
8
9
COPY NuGet.Config .
9
- COPY src/Cli/func .
10
10
COPY tools/ tools/
11
+ COPY eng/*.props eng/
12
+ COPY src/*.props src/
13
+ COPY src/Cli/func src/Cli/func
14
+ COPY AzureFunctions-CLI.ico .
15
+ COPY eng/scripts/download-templates.sh .
11
16
12
17
ARG TARGET_RUNTIME=linux-x64
13
- RUN dotnet publish /p:BuildNumber="9999" /p:CommitHash="N/A" -o /cli -c Release -f net8.0 --self-contained -r ${TARGET_RUNTIME}
18
+ RUN dotnet publish src/Cli/func /p:BuildNumber="9999" /p:CommitHash="N/A" -o /cli -c Release -f net8.0 --self-contained -r ${TARGET_RUNTIME}
14
19
15
- FROM ${RUNTIME_IMAGE} AS runtime
20
+ RUN bash ./download-templates.sh --output /cli
21
+
22
+ FROM ${BASE_IMAGE} AS runtime
16
23
17
24
WORKDIR /cli
18
25
@@ -21,5 +28,7 @@ COPY --from=build /cli .
21
28
# Add cli to path so it can be run from anywhere
22
29
ENV PATH="$PATH:/cli"
23
30
31
+ WORKDIR /playground
32
+
24
33
# Run forever
25
34
ENTRYPOINT ["tail" , "-f" , "/dev/null" ]
Original file line number Diff line number Diff line change
1
+ # Run: docker-compose up --build -d && docker exec -it func-cli bash
1
2
services :
2
3
func-cli :
3
4
build :
You can’t perform that action at this time.
0 commit comments