Skip to content

Commit 4999296

Browse files
committed
[refactor] Remove entrypoint script and update Dockerfile to use CMD for application startup
1 parent b935d5b commit 4999296

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ COPY . .
99

1010
RUN pnpm install --frozen-lockfile
1111

12-
RUN chmod +x entrypoint.sh
13-
1412
EXPOSE 80
1513

16-
ENTRYPOINT [ "/app/entrypoint.sh" ]
14+
CMD [ "cd /app && pnpm run build && pnpm start --port 80" ]

entrypoint.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

farm.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ export default defineConfig({
99
alias: {
1010
"~/": path.join(process.cwd(), "src"),
1111
}
12+
},
13+
define: {
14+
SD_BACKEND_URL: process.env.SD_BACKEND_URL,
15+
SD_CLIENT_ID: process.env.SD_CLIENT_ID,
16+
SD_AUTHORITY_URL: process.env.SD_AUTHORITY_URL,
17+
SD_REDIRECT_URL: process.env.SD_REDIRECT_URL,
18+
SD_LOGOUT_REDIRECT_URL: process.env.SD_LOGOUT_REDIRECT_URL,
19+
SD_AUTH_SECRET: process.env.SD_AUTH_SECRET,
1220
}
1321
},
1422
envPrefix: "SD_",

0 commit comments

Comments
 (0)