question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Managed to build a sub 90mb (compressed) docker image.

See original GitHub issue

So using a multi stage dockerfile and dockers auto build system I have managed to get a docker image to 87mb (compressed).

I’ve checked with a couple of the simple challenges (XSS Tier 1, Error Handling, Login Bender) and it seems to work.

Could someone check some of the more complex challenges to confirm it all works before I submit a pull request please?

docker run -d -p 3000:3000 arclight/juice-shop_x64_test

Thanks.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
bkimminichcommented, Nov 15, 2017

@battletux You need to have the source code checked out and once grab all dependencies from NPM, so your commands should probably be

npm install
npm run preprotractor
./node_modules/.bin/protractor protractor.conf.js

This while having a Docker container running on port 3000 should do the trick.

0reactions
lock[bot]commented, Nov 4, 2019

This thread has been automatically locked because it has not had recent activity after it was closed. 🔒 Please open a new issue for regressions or related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multi-stage builds - Docker Documentation
Keeping your images small with multi-stage builds. ... One of the most challenging things about building images is keeping the image size down....
Read more >
How to Reduce Docker Image Size: 6 Optimization Methods
This blog talks about different optimization techniques that you can quickly implement to make the smallest and minimal docker image. We will ...
Read more >
Understanding and Building Docker Images - JFrog
A practical guide to Docker images. How they work, how to create them, how to optimise them, where to find ready-made images and...
Read more >
Retrieving Docker Image Sizes - gists · GitHub
If you are building Docker images and want to get an ideal of what the compressed size, you could push it to a...
Read more >
Docker Image Size - How to Keep It Small? - phoenixNAP
Introduction. Docker images are essential components used for building Docker containers. Although closely related, there are major ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found