Skip to content

Commit d974496

Browse files
authored
Merge pull request #63 from sir-gon/develop
[CONFIG] Docker cosmetic comments added.
2 parents 66226c9 + 963650a commit d974496

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
###############################################################################
12
FROM mcr.microsoft.com/dotnet/sdk:8.0.301-alpine3.19-amd64 AS base
23

34
ENV WORKDIR=/app
45
WORKDIR ${WORKDIR}
56

7+
###############################################################################
68
FROM node:22.2.0-alpine3.19 AS lint
79

810
ENV WORKDIR=/app
@@ -19,17 +21,20 @@ COPY ./docs ${WORKDIR}/docs
1921
RUN apk add --update --no-cache make
2022
RUN npm install -g --ignore-scripts markdownlint-cli
2123

24+
###############################################################################
2225
FROM base AS development
2326

2427
RUN apk add --update --no-cache make
2528

29+
###############################################################################
2630
FROM development AS builder
2731

2832
COPY ./algorithm-exercises-csharp ${WORKDIR}/algorithm-exercises-csharp
2933
COPY ./algorithm-exercises-csharp.sln ${WORKDIR}/algorithm-exercises-csharp.sln
3034
COPY ./Makefile ${WORKDIR}/
3135
RUN ls -alh
3236

37+
###############################################################################
3338
### In testing stage, can't use USER, due permissions issue
3439
## in github actions environment:
3540
##
@@ -47,6 +52,7 @@ RUN ls -alh
4752

4853
CMD ["dotnet", "test"]
4954

55+
###############################################################################
5056
### In production stage
5157
## in the production phase, "good practices" such as
5258
## WORKSPACE and USER are maintained

0 commit comments

Comments
 (0)