Compare commits

..

No commits in common. "09e86de93d30b9deb90b525b0895d43461a41f2b" and "7469565f521c8462cec4b29ce07955046aacaf30" have entirely different histories.

3 changed files with 8 additions and 34 deletions

View File

@ -1,29 +1,19 @@
# ---- Base ---- FROM node:16-alpine
FROM alpine:3 AS base
# Create app directory # Create app directory
WORKDIR /usr/src/app 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 # Install app dependencies
RUN npm install --only=production COPY package*.json ./
RUN npm install
# remove development dependencies
RUN npm prune --production
# ---- Release ---- # Install required apk-packages & delete cache
FROM base AS release RUN apk update && apk add tcpdump && rm -rf /var/cache/apk/*
# copy from build image
COPY --from=dependencies /usr/src/app/ ./
# Bundle app source # Bundle app source
COPY ./src/ . COPY ./src/ .
CMD ["npm", "run", "start"] CMD ["npm", "run", "start"]

View File

@ -1,9 +0,0 @@
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 \
.

View File

@ -1,7 +0,0 @@
TAG="ruakij/rfmon-to-influx"
EXTRA_ARGS="$@"
docker build \
--tag $TAG \
$EXTRA_ARGS \
.