Skip to content

Commit 82dca2c

Browse files
committed
update docker and remove deployments
1 parent e5a7e0f commit 82dca2c

File tree

5 files changed

+18
-10
lines changed

5 files changed

+18
-10
lines changed

helpers/python.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,4 @@ export const installPythonTemplate = async ({
548548
if (postInstallAction === "runApp" || postInstallAction === "dependencies") {
549549
installPythonDependencies();
550550
}
551-
552-
// Copy deployment files for python
553-
await copy("**", root, {
554-
cwd: path.join(compPath, "deployments", "python"),
555-
});
556551
};

helpers/typescript.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,6 @@ export const installTSTemplate = async ({
247247
) {
248248
await installTSDependencies(packageJson, packageManager, isOnline);
249249
}
250-
251-
// Copy deployment files for typescript
252-
await copy("**", root, {
253-
cwd: path.join(compPath, "deployments", "typescript"),
254-
});
255250
};
256251

257252
async function updatePackageJson({
File renamed without changes.

templates/components/deployments/python/Dockerfile renamed to templates/types/streaming/fastapi/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ COPY . .
4545
# Remove frontend code
4646
RUN rm -rf .frontend
4747

48+
EXPOSE 8000
49+
4850
CMD ["poetry", "run", "prod"]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM node:20-alpine as build
2+
3+
WORKDIR /app
4+
5+
# Install dependencies
6+
COPY package.json package-lock.* ./
7+
RUN npm install
8+
9+
# Build the application
10+
COPY . .
11+
RUN npm run build
12+
13+
# ====================================
14+
FROM build as release
15+
16+
CMD ["npm", "run", "start"]

0 commit comments

Comments
 (0)