Compare commits
24 Commits
f_influxdb
...
master
Author | SHA1 | Date |
---|---|---|
Ruakij | 09e86de93d | 2 years ago |
Ruakij | 4bdaae0c70 | 2 years ago |
Ruakij | 41302b9f9f | 2 years ago |
Ruakij | ad8d546b78 | 2 years ago |
Ruakij | d5a727c3df | 2 years ago |
Ruakij | d5c7f0a580 | 2 years ago |
Ruakij | 9ff168317e | 2 years ago |
Ruakij | 7469565f52 | 3 years ago |
Ruakij | a6a3a8b180 | 3 years ago |
Ruakij | e1238b1ba0 | 3 years ago |
Ruakij | b545b99135 | 3 years ago |
Ruakij | 6c848c0e42 | 3 years ago |
Ruakij | 918306647d | 3 years ago |
Ruakij | 1bc52b0a37 | 3 years ago |
Ruakij | 3b10aca352 | 3 years ago |
Ruakij | b1942b89cb | 3 years ago |
Ruakij | 10bd72907e | 3 years ago |
Ruakij | 5303b31bd7 | 3 years ago |
Ruakij | c3cd6393d4 | 3 years ago |
Ruakij | c97137f4a7 | 3 years ago |
Ruakij | a13d81e9c0 | 3 years ago |
Ruakij | 059c02e243 | 3 years ago |
Ruakij | a610f209d5 | 3 years ago |
Ruakij | 6e05a0b45c | 3 years ago |
@ -1,19 +1,29 @@
|
||||
FROM node:16-alpine
|
||||
# ---- Base ----
|
||||
FROM alpine:3 AS base
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Copy project file
|
||||
COPY package.json .
|
||||
|
||||
# Install required apk-packages
|
||||
RUN apk add --no-cache nodejs npm tcpdump
|
||||
|
||||
|
||||
# ---- Dependencies ----
|
||||
FROM base AS dependencies
|
||||
|
||||
# Install app dependencies
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
RUN npm install --only=production
|
||||
|
||||
# remove development dependencies
|
||||
RUN npm prune --production
|
||||
|
||||
# Install required apk-packages & delete cache
|
||||
RUN apk update && apk add tcpdump && rm -rf /var/cache/apk/*
|
||||
# ---- Release ----
|
||||
FROM base AS release
|
||||
|
||||
# copy from build image
|
||||
COPY --from=dependencies /usr/src/app/ ./
|
||||
# Bundle app source
|
||||
COPY ./src/ .
|
||||
|
||||
CMD ["npm", "run", "start"]
|
||||
CMD ["npm", "run", "start"]
|
||||
|
@ -0,0 +1,9 @@
|
||||
TAG="ruakij/rfmon-to-influx"
|
||||
PLATFORM="linux/amd64,linux/arm64/v8,linux/arm/v7"
|
||||
EXTRA_ARGS="$@"
|
||||
|
||||
docker buildx build \
|
||||
--platform $PLATFORM \
|
||||
--tag $TAG \
|
||||
$EXTRA_ARGS \
|
||||
.
|
@ -0,0 +1,7 @@
|
||||
TAG="ruakij/rfmon-to-influx"
|
||||
EXTRA_ARGS="$@"
|
||||
|
||||
docker build \
|
||||
--tag $TAG \
|
||||
$EXTRA_ARGS \
|
||||
.
|
Binary file not shown.
After Width: | Height: | Size: 147 KiB |
Loading…
Reference in New Issue