Skip to content

Commit efbe080

Browse files
committed
todo-api distributed migrated
1 parent d3ebd62 commit efbe080

File tree

5 files changed

+4699
-6459
lines changed

5 files changed

+4699
-6459
lines changed

02-orquestacion/exercises/02-distributed/todo-api/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:12-alpine3.12 as builder
1+
FROM node:22-alpine AS builder
22

33
WORKDIR /build
44

@@ -12,12 +12,12 @@ COPY package*.json ./
1212
COPY tsconfig.json ./
1313

1414
# Build app
15-
RUN npm install
15+
RUN npm ci
1616

1717
RUN npm run build
1818

1919
# Packaging app
20-
FROM node:12-alpine3.12 as app
20+
FROM node:22-alpine AS app
2121

2222
WORKDIR /app
2323

02-orquestacion/exercises/02-distributed/todo-api/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ PORT=
1010
## Running the Application with Docker on Local
1111

1212
```bash
13-
$ docker build -t lemoncode/todo-api .
13+
docker build -t lemoncode/todo-api .
1414
```
1515

1616
Start app without database
1717

1818
```bash
19-
$ docker run -d -p 3000:3000 \
19+
docker run -d -p 3000:3000 \
2020
-e NODE_ENV=production \
2121
-e PORT=3000 \
2222
lemoncode/todo-api

0 commit comments

Comments
 (0)