Skip to content

Instantly share code, notes, and snippets.

@iheart2code
Created July 5, 2019 22:41
Show Gist options
  • Save iheart2code/74c5c6421f4ca9e6ba83c5c597f4a694 to your computer and use it in GitHub Desktop.
Save iheart2code/74c5c6421f4ca9e6ba83c5c597f4a694 to your computer and use it in GitHub Desktop.
FROM balenalib/%%BALENA_ARCH%%-debian-node:10.16-jessie-build as build
COPY package*.json ./
RUN npm ci --only=production
FROM balenalib/%%BALENA_ARCH%%-debian-node:10.16-jessie-run
ENV INITSYSTEM=on
WORKDIR /usr/src/app
COPY . .
COPY --from=build ./node_modules ./node_modules
CMD ["npm", "start"]
version: '2'
services:
app:
build: ./app
network_mode: host
privileged: true
links:
- daemon
daemon:
build: ./daemon
privileged: true
cap_add:
- NET_ADMIN
network_mode: host
ports:
- "1234:1234"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment