File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change
1
+ # ##############################################################################
1
2
FROM mcr.microsoft.com/dotnet/sdk:8.0.301-alpine3.19-amd64 AS base
2
3
3
4
ENV WORKDIR=/app
4
5
WORKDIR ${WORKDIR}
5
6
7
+ # ##############################################################################
6
8
FROM node:22.2.0-alpine3.19 AS lint
7
9
8
10
ENV WORKDIR=/app
@@ -19,17 +21,20 @@ COPY ./docs ${WORKDIR}/docs
19
21
RUN apk add --update --no-cache make
20
22
RUN npm install -g --ignore-scripts markdownlint-cli
21
23
24
+ # ##############################################################################
22
25
FROM base AS development
23
26
24
27
RUN apk add --update --no-cache make
25
28
29
+ # ##############################################################################
26
30
FROM development AS builder
27
31
28
32
COPY ./algorithm-exercises-csharp ${WORKDIR}/algorithm-exercises-csharp
29
33
COPY ./algorithm-exercises-csharp.sln ${WORKDIR}/algorithm-exercises-csharp.sln
30
34
COPY ./Makefile ${WORKDIR}/
31
35
RUN ls -alh
32
36
37
+ # ##############################################################################
33
38
# ## In testing stage, can't use USER, due permissions issue
34
39
# # in github actions environment:
35
40
# #
@@ -47,6 +52,7 @@ RUN ls -alh
47
52
48
53
CMD ["dotnet" , "test" ]
49
54
55
+ # ##############################################################################
50
56
# ## In production stage
51
57
# # in the production phase, "good practices" such as
52
58
# # WORKSPACE and USER are maintained
You can’t perform that action at this time.
0 commit comments