Skip to content

Commit 18cd0b8

Browse files
committed
fix: Enable ecs-containers-readonly-access and update Docker CMD
- Update tc-deploy-scripts to v1.4.15 to set environment variables for enabling ecs-containers-readonly-access - Modify Dockerfile to replace 'yarn start' with 'node /challenge-api/app.js' to ensure compatibility with read-only file systems Enabling ecs-containers-readonly-access ensures that the container file system is read-only, reducing the risk of unauthorized modifications to the application files during runtime. Replacing 'yarn start' with 'node /challenge-api/app.js' addresses potential issues with Yarn requiring a writable file system for certain operations, ensuring a smooth deployment on a read-only environment. Signed-off-by: Rakib Ansary <[email protected]>
1 parent 8e5895c commit 18cd0b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ install_dependency: &install_dependency
1313
install_deploysuite: &install_deploysuite
1414
name: Installation of install_deploysuite.
1515
command: |
16-
git clone --branch v1.4.14 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
16+
git clone --branch v1.4.15 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
1717
cp ./../buildscript/master_deploy.sh .
1818
cp ./../buildscript/buildenv.sh .
1919
cp ./../buildscript/awsconfiguration.sh .

docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ WORKDIR /challenge-api
1010
# Install the dependencies from package.json
1111
RUN yarn install
1212

13-
CMD yarn start
13+
CMD node /challenge-api/app.js

0 commit comments

Comments
 (0)