Sign inSign up

julianbei/node-ci-cdn-mock

By julianbei

•Updated almost 10 years ago

Mocking CDN served Content with node environment at build time

Image
0

319

julianbei/node-ci-cdn-mock repository overview

⁠node-ci-cdn-mock

Mocking CDN served Content with node environment at build time

⁠Tooling available

  • yarn

⁠Standard port

80 change it with giving the image a different environment variable called PORT


cdn:
  environment:
    - PORT=3000
  ports:
    - "3000:3000"

⁠Usage:

Build your own dockerfile and start it with:

FROM julianbei/node-ci-cdn-mock:latest

COPY . .
RUN yarn
RUN npm test
RUN npm build

the result must be a ./dist folder. Abosulte path is: /server/app/dist

Tag summary

Content type

Image

Digest

Size

26.2 MB

Last updated

almost 10 years ago

docker pull julianbei/node-ci-cdn-mock