[PR #3979] [CLOSED] Update Dockerfiles to copy binary from working directory into build container #4879

Closed
opened 2026-05-05 14:50:31 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/3979
Author: @Xenophilicy
Created: 2/7/2024
Status: Closed

Base: devHead: dev


📝 Commits (1)

📊 Changes

2 files changed (+2 additions, -2 deletions)

View changed files

📝 dockerfiles/Dockerfile-for-frpc (+1 -1)
📝 dockerfiles/Dockerfile-for-frps (+1 -1)

📄 Description

I was trying to build the Docker container using the latest release and the provided Dockerfiles when I received the error below:

 => ERROR [stage-1 2/2] COPY --from=building /building/bin/frps /usr/bin/frps                                                                                                                          0.0s
------
 > [stage-1 2/2] COPY --from=building /building/bin/frps /usr/bin/frps:
------
Dockerfile:10
--------------------
   8 |     FROM alpine:3
   9 |
  10 | >>> COPY --from=building /building/bin/frps /usr/bin/frps
  11 |
  12 |     ENTRYPOINT ["/usr/bin/frps"]
--------------------
ERROR: ... /var/lib/docker/tmp/.../building/bin: no such file or directory

There is a small typo in the Dockerfiles that copies from /bin in the working directory - which does not exist, nor needs to. Updating this to read the frpc/frps file from working directory fixes this error and allows the image to build


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/3979 **Author:** [@Xenophilicy](https://github.com/Xenophilicy) **Created:** 2/7/2024 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (1) - [`b916f66`](https://github.com/fatedier/frp/commit/b916f66c8410cb892616dc99992dc6fd9d1f4b7e) Fix Dockerfiles ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `dockerfiles/Dockerfile-for-frpc` (+1 -1) 📝 `dockerfiles/Dockerfile-for-frps` (+1 -1) </details> ### 📄 Description I was trying to build the Docker container using the latest release and the provided Dockerfiles when I received the error below: ``` => ERROR [stage-1 2/2] COPY --from=building /building/bin/frps /usr/bin/frps 0.0s ------ > [stage-1 2/2] COPY --from=building /building/bin/frps /usr/bin/frps: ------ Dockerfile:10 -------------------- 8 | FROM alpine:3 9 | 10 | >>> COPY --from=building /building/bin/frps /usr/bin/frps 11 | 12 | ENTRYPOINT ["/usr/bin/frps"] -------------------- ERROR: ... /var/lib/docker/tmp/.../building/bin: no such file or directory ``` There is a small typo in the Dockerfiles that copies from `/bin` in the working directory - which does not exist, nor needs to. Updating this to read the frpc/frps file from working directory fixes this error and allows the image to build --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:50:31 -06:00
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: github-starred/frp#4879
No description provided.