File tree 2 files changed +18
-0
lines changed
LambdaRuntimeDockerfiles/sample/Sample
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Ignore test and example files containing dummy credentials
2
+ **/test/**/*.json
3
+ **/tests/**/*.json
4
+ **/SampleRequests/**/*.json
5
+ **/*.example.*
6
+ **/*.test.*
7
+ **/*.min.js
8
+ **/env.configs.yml
9
+
10
+ # Ignore third-party libraries
11
+ **/node_modules/**
12
+ **/vendor/**
13
+ **/dist/**
14
+ **/build/**
15
+ **/bootstrap/**/*.js
Original file line number Diff line number Diff line change @@ -17,4 +17,7 @@ RUN dotnet publish "Sample.csproj" -c Release -o /app/publish
17
17
FROM base AS final
18
18
COPY --from=publish /app/publish ${LAMBDA_TASK_ROOT}
19
19
# ref. https://docs.aws.amazon.com/lambda/latest/dg/csharp-handler.html#csharp-handler-signatures
20
+ # Create a non-root user and switch to it
21
+ RUN adduser --disabled-password --gecos "" appuser
22
+ USER appuser
20
23
CMD [ "Sample::Sample.Function::FunctionHandler" ]
You can’t perform that action at this time.
0 commit comments