Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions 2025/helm/jiwlee97/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM node:18-alpine AS build

WORKDIR /app
COPY ./app/package*.json ./app/tsconfig.json ./
COPY ./app/ .

RUN npm install
RUN npm run build

FROM node:18-alpine AS production

WORKDIR /app
COPY --from=build /app/dist ./dist
COPY --from=build /app/package*.json ./

RUN npm ci --only=production && npm cache clean --force

ENV PORT=8080
EXPOSE 8080
CMD ["node", "dist/main.js"]
2 changes: 2 additions & 0 deletions 2025/helm/jiwlee97/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
16 changes: 16 additions & 0 deletions 2025/helm/jiwlee97/app/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import express from 'express';

const app = express();
const port = process.env.PORT || 8080;

app.get('/api/v1/jiwlee97', (req, res) => {
res.send('Hello from jiwlee97!');
});

app.get('/healthcheck', (req, res) => {
res.send('OK');
});

app.listen(port, () => {
console.log(`Server running on port ${port}`);
});
Loading