Skip to content

Commit 177f18f

Browse files
committed
Added Docker support for template-engine
1 parent e803dc5 commit 177f18f

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
dist
3+
.git
4+
.gitignore
5+
Dockerfile
6+
docker-compose.yml
7+
npm-debug.log

dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Base image (Using lightweight Alpine variant for optimization)
2+
FROM node:18-alpine
3+
4+
# Set working directory
5+
WORKDIR /app
6+
7+
# Copy package.json and package-lock.json first (for efficient caching)
8+
COPY package.json package-lock.json ./
9+
10+
# Install dependencies
11+
RUN npm install
12+
13+
# Copy the entire project (excluding files in .dockerignore)
14+
COPY . .
15+
16+
# Build the TypeScript project
17+
RUN npm run build
18+
19+
# Default command (Modify if there's a specific entry point)
20+
CMD ["node", "dist/index.js"]

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
*/
1414

1515
export { TemplateMarkInterpreter } from './TemplateMarkInterpreter';
16-
export * from './utils';
16+
export * from './utils';

0 commit comments

Comments
 (0)