seanpedrickcase commited on
Commit
5ecf07b
·
1 Parent(s): ed45a4a

Updated Dockerfile entrypoint references, CDK folder packages update

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -3
  2. cdk/requirements.txt +3 -3
Dockerfile CHANGED
@@ -120,9 +120,10 @@ COPY --from=builder /install/bin /usr/local/bin/
120
  # Copy app code and entrypoint with correct ownership
121
  COPY --chown=user . $APP_HOME/app
122
 
123
- # Copy the entrypoint script separately and set permissions
124
  COPY --chown=user entrypoint.sh ${APP_HOME}/app/entrypoint.sh
125
- RUN chmod +x ${APP_HOME}/app/entrypoint.sh
 
126
 
127
  # Switch to user
128
  USER user
@@ -158,6 +159,6 @@ ENV PATH=$APP_HOME/.local/bin:$PATH \
158
  GRADIO_ANALYTICS_ENABLED=False \
159
  DEFAULT_CONCURRENCY_LIMIT=3
160
 
161
- ENTRYPOINT ["./entrypoint.sh"]
162
 
163
  CMD ["lambda_entrypoint.lambda_handler"]
 
120
  # Copy app code and entrypoint with correct ownership
121
  COPY --chown=user . $APP_HOME/app
122
 
123
+ # Copy the entrypoint script separately, set permissions, set line endings correctly
124
  COPY --chown=user entrypoint.sh ${APP_HOME}/app/entrypoint.sh
125
+ RUN chmod 755 /home/user/app/entrypoint.sh \
126
+ && sed -i 's/\r$//' /home/user/app/entrypoint.sh
127
 
128
  # Switch to user
129
  USER user
 
159
  GRADIO_ANALYTICS_ENABLED=False \
160
  DEFAULT_CONCURRENCY_LIMIT=3
161
 
162
+ ENTRYPOINT ["/home/user/app/entrypoint.sh"]
163
 
164
  CMD ["lambda_entrypoint.lambda_handler"]
cdk/requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
- aws-cdk-lib==2.212.0
2
- boto3==1.40.10
3
- pandas==2.3.1
4
  nodejs==0.1.1
5
  python-dotenv==1.0.1
 
1
+ aws-cdk-lib==2.220.0
2
+ boto3==1.40.57
3
+ pandas==2.3.3
4
  nodejs==0.1.1
5
  python-dotenv==1.0.1