Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
Merge pull request #16 from terascope/update-docker-image
Browse files Browse the repository at this point in the history
Update base docker image to node:18-bookworm-slim
  • Loading branch information
godber authored Feb 1, 2024
2 parents 54dbaf0 + 8af6d83 commit ab51431
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:14-buster-slim as build
FROM node:18-bookworm-slim as build
WORKDIR /app/source
COPY package.json .
RUN npm install && npm install typescript
ADD . /app/source
RUN npx tsc

FROM node:14-buster-slim
FROM node:18-bookworm-slim
WORKDIR /app/source
COPY --from=build /app/source /app/source
CMD [ "npm", "start" ]
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ value is in ms.
Build the docker image:

```bash
docker build -t teraslice-exporter:v0.1.0 .
docker build -t teraslice-exporter:v0.4.0 .
```

Run the docker image:

```bash
docker run --rm -p 3000:3000 \
-e TERASLICE_URL="http://url.to.teraslice/" \
teraslice-exporter:v0.1.0 | bunyan
teraslice-exporter:v0.4.0 | bunyan
```

## Design
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Terascope, LLC <[email protected]>",
"version": "0.3.1",
"version": "0.4.0",
"license": "MIT",
"dependencies": {
"bunyan": "^1.8.14",
Expand Down

0 comments on commit ab51431

Please sign in to comment.