Created
March 21, 2023 20:56
-
-
Save ialex/b48fd5b3b47ee26fae6eec615e2ea418 to your computer and use it in GitHub Desktop.
Simple docker container to build prebid with volume attached
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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