Skip to content

Commit 6e35046

Browse files
committed
fix: edit dockerfile and task definition for deployment workflow
1 parent 3f41311 commit 6e35046

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.aws/task-definition.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
{ "name": "HOSTNAME", "value": "0.0.0.0" },
1616
{ "name": "PORT", "value": "3000" }
1717
],
18+
"secrets": [
19+
{
20+
"name": "DATABASE_URL",
21+
"valueFrom": "arn:aws:secretsmanager:us-east-2:163885032113:secret:sarge/prod-1d8Jug:DATABASE_URL::"
22+
}
23+
],
1824
"logConfiguration": {
1925
"logDriver": "awslogs",
2026
"options": {

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM node:22-slim AS builder
22
WORKDIR /app
33

4-
RUN apt-get update -y && apt-get install -y openssl
4+
RUN apt-get update -y && apt-get install -y openssl ca-certificates libssl3 && rm -rf /var/lib/apt/lists/*
55

66
COPY package.json pnpm-lock.yaml* ./
77
RUN corepack enable && pnpm install --frozen-lockfile
@@ -19,6 +19,8 @@ ENV PORT=3000
1919
ENV HOSTNAME=0.0.0.0
2020
EXPOSE 3000
2121

22+
RUN apt-get update -y && apt-get install -y openssl ca-certificates libssl3 && rm -rf /var/lib/apt/lists/*
23+
2224
COPY --from=builder /app/.next/standalone ./
2325
COPY --from=builder /app/.next/static ./.next/static
2426
# TODO: uncomment when we add public directory

0 commit comments

Comments
 (0)