# Build docker base image fail

**URL:** https://meta.discourse.org/t/build-docker-base-image-fail/76119
**Category:** Self-hosting
**Created:** [December 15, 2017, 9:52am UTC](https://meta.discourse.org/t/build-docker-base-image-fail/76119 "2017-12-15T09:52:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ray\_chen](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@ray\_chen](https://meta.discourse.org/u/ray_chen)
#### Post date: [December 15, 2017, 9:52am UTC](https://meta.discourse.org/t/build-docker-base-image-fail/76119/1 "2017-12-15T09:52:51Z")

</div>

I tried to build image using Dockerfile from [discourse\_docker/image/base at master · discourse/discourse\_docker · GitHub](https://github.com/discourse/discourse_docker/tree/master/image/base) but ends up with below error.

```
Step 46/59 : ADD phantomjs /usr/local/bin/phantomjs
ADD failed: stat /var/lib/docker/tmp/docker-builder498252385/phantomjs: no such file or directory

```

I cannot find phantomjs on folder “/image/base” of [discourse\_docker] repo ([GitHub - discourse/discourse\_docker: A Docker image for Discourse · GitHub](https://github.com/discourse/discourse_docker)). Can someone point me where can I find the file?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 15, 2017, 10:32am UTC](https://meta.discourse.org/t/build-docker-base-image-fail/76119/2 "2017-12-15T10:32:41Z")

</div>

Sorry we are in the process of nuking phantom, it should be gone soon cc @tgxworld

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [December 15, 2017, 10:41am UTC](https://meta.discourse.org/t/build-docker-base-image-fail/76119/3 "2017-12-15T10:41:49Z")

</div>

Take a look at the following post if you don’t want to wait until phantomjs is removed.

> [@Chrome 59 headless support](https://meta.discourse.org/t/chrome-59-headless-support/62060/11):
>
> There’s some magic that occurs to obtain phantomJS The build.rb script executes the download\_phantomjs script on the host, which spins up a docker container, which I’m guessing builds a custom version of phantomJS. So if you run that download\_phantomjs script first it should work slight_smile[https://github.com/discourse/discourse\_docker/blob/master/image/build.rb#L98](https://github.com/discourse/discourse_docker/blob/master/image/build.rb#L98)[https://github.com/discourse/discourse\_docker/blob/master/image/base/download\_phantomjs](https://github.com/discourse/discourse_docker/blob/master/image/base/download_phantomjs)

Also, we build a new base image every week. You can find it at [discourse/base - Docker Image](https://hub.docker.com/r/discourse/base/)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [December 15, 2017, 1:00pm UTC](https://meta.discourse.org/t/build-docker-base-image-fail/76119/4 "2017-12-15T13:00:05Z")

</div>

Hmm I didn’t nuke phantomjs yet… That is odd

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [December 15, 2017, 1:05pm UTC](https://meta.discourse.org/t/build-docker-base-image-fail/76119/5 "2017-12-15T13:05:23Z")

</div>

I think what Sam meant to say was:

> Sorry we are in the process of nuking phantomjs. It should be gone soon and then you don’t need to worry about the missing phantomjs anymore.

It’s definitely not your fault that the build is failing for @ray_chen. Building the base image is just a little bit more complicated. Currently it doesn’t work without compiling phantomjs before building the base image.
