You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rfmon-to-influx/Dockerfile

30 lines
488 B
Docker

# ---- Base ----
FROM alpine:3 AS base
3 years ago
# 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
3 years ago
# Install app dependencies
RUN npm install --only=production
3 years ago
# ---- Release ----
FROM base AS release
# copy from build image
COPY --from=dependencies /usr/src/app/ ./
3 years ago
# Bundle app source
COPY ./src/ .
CMD ["npm", "run", "start"]