[GH-ISSUE #286] Error building FrontEnd #269

Closed
opened 2026-02-27 15:55:54 +03:00 by kerem · 4 comments
Owner

Originally created by @AshleyOboe on GitHub (Jul 22, 2020).
Original GitHub issue: https://github.com/RD17/ambar/issues/286

I'm getting a build error on frontend

$ cd frontend
$ docker build . -t frontend

Error:
Sending build context to Docker daemon 177.4MB Step 1/8 : FROM nginx:latest ---> 8cf1bfb43ff5 Step 2/8 : RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y curl ---> Using cache ---> f1829a617007 Step 3/8 : ENV TZ=UTC ---> Using cache ---> ca4475816da7 Step 4/8 : RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone ---> Using cache ---> 0dbd9ed2f2d1 Step 5/8 : COPY default /etc/nginx/conf.d/default.conf ---> Using cache ---> 442b575b0027 Step 6/8 : COPY dist /usr/share/nginx/html COPY failed: stat /var/lib/docker/tmp/docker-builder302332317/dist: no such file or directory

Running Docker version 19.03.8, build afacb8b

I was using a newer version and rolled back to this current stable version of Docker.

Thanks.

Originally created by @AshleyOboe on GitHub (Jul 22, 2020). Original GitHub issue: https://github.com/RD17/ambar/issues/286 I'm getting a build error on frontend $ cd frontend $ docker build . -t frontend Error: `Sending build context to Docker daemon 177.4MB Step 1/8 : FROM nginx:latest ---> 8cf1bfb43ff5 Step 2/8 : RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y curl ---> Using cache ---> f1829a617007 Step 3/8 : ENV TZ=UTC ---> Using cache ---> ca4475816da7 Step 4/8 : RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone ---> Using cache ---> 0dbd9ed2f2d1 Step 5/8 : COPY default /etc/nginx/conf.d/default.conf ---> Using cache ---> 442b575b0027 Step 6/8 : COPY dist /usr/share/nginx/html COPY failed: stat /var/lib/docker/tmp/docker-builder302332317/dist: no such file or directory` Running Docker version 19.03.8, build afacb8b I was using a newer version and rolled back to this current stable version of Docker. Thanks.
kerem 2026-02-27 15:55:54 +03:00
  • closed this issue
  • added the
    wontfix
    label
Author
Owner

@iddqd-dev commented on GitHub (Jul 23, 2020):

U must use "npm install" and "npm run compile" in frontend folder before u run docker build

<!-- gh-comment-id:663157280 --> @iddqd-dev commented on GitHub (Jul 23, 2020): U must use "npm install" and "npm run compile" in frontend folder before u run docker build
Author
Owner

@iddqd-dev commented on GitHub (Jul 23, 2020):

And dont forget use tweaks 4 correctly working
sudo su
echo "vm.max_map_count=262144" >> /etc/sysctl.conf
echo "net.ipv4.ip_local_port_range="15000 61000"" >> /etc/sysctl.conf
echo "net.ipv4.tcp_fin_timeout=30" >> /etc/sysctl.conf
echo "net.core.somaxconn=1024" >> /etc/sysctl.conf
echo "net.core.netdev_max_backlog=2000" >> /etc/sysctl.conf
echo "net.ipv4.tcp_max_syn_backlog=2048" >> /etc/sysctl.conf
echo "vm.overcommit_memory=1" >> /etc/sysctl.conf
reboot

<!-- gh-comment-id:663159822 --> @iddqd-dev commented on GitHub (Jul 23, 2020): And dont forget use tweaks 4 correctly working sudo su echo "vm.max_map_count=262144" >> /etc/sysctl.conf echo "net.ipv4.ip_local_port_range="15000 61000"" >> /etc/sysctl.conf echo "net.ipv4.tcp_fin_timeout=30" >> /etc/sysctl.conf echo "net.core.somaxconn=1024" >> /etc/sysctl.conf echo "net.core.netdev_max_backlog=2000" >> /etc/sysctl.conf echo "net.ipv4.tcp_max_syn_backlog=2048" >> /etc/sysctl.conf echo "vm.overcommit_memory=1" >> /etc/sysctl.conf reboot
Author
Owner

@iddqd-dev commented on GitHub (Jul 25, 2020):

im helped u?

<!-- gh-comment-id:663858193 --> @iddqd-dev commented on GitHub (Jul 25, 2020): im helped u?
Author
Owner

@stale[bot] commented on GitHub (Aug 9, 2020):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:671061067 --> @stale[bot] commented on GitHub (Aug 9, 2020): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ambar#269
No description provided.