Skip to content

Instantly share code, notes, and snippets.

@ialex
Created March 21, 2023 20:56
Show Gist options
  • Save ialex/b48fd5b3b47ee26fae6eec615e2ea418 to your computer and use it in GitHub Desktop.
Save ialex/b48fd5b3b47ee26fae6eec615e2ea418 to your computer and use it in GitHub Desktop.
Simple docker container to build prebid with volume attached
# Run it
# docker build -t prebid .
# docker run -ti -v "$(pwd):/Prebid.js" prebid:latest npm run build
# syntax=docker/dockerfile:1
FROM node:12-alpine AS build
COPY package*.json ./
RUN npm install --production
FROM node:12-alpine
RUN npm install -g gulp gulp-cli
COPY --from=build ./node_modules ./node_modules
WORKDIR /Prebid.js
CMD [ "npm", "run", "build" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment