APK ERROR: Service 'backend' failed to build : Build failed #687

Closed
opened 2026-03-07 21:21:45 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @kaipyroami on GitHub (Jun 15, 2023).

Error when building nginx-golang-postgres

Error response from daemon: dockerfile parse error line 25: unknown instruction: APK
ERROR: Service 'backend' failed to build : Build failed

It appears to be failing to run this command:

RUN <<EOF
apk update
apk add git
EOF
Originally created by @kaipyroami on GitHub (Jun 15, 2023). Error when building `nginx-golang-postgres` ``` Error response from daemon: dockerfile parse error line 25: unknown instruction: APK ERROR: Service 'backend' failed to build : Build failed ``` It appears to be failing to run this command: ``` RUN <<EOF apk update apk add git EOF ```
Author
Owner

@kaipyroami commented on GitHub (Jun 15, 2023):

Modifying to

RUN apk update
RUN apk add git

solved the issue.

@kaipyroami commented on GitHub (Jun 15, 2023): Modifying to ``` RUN apk update RUN apk add git ``` solved the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-compose#687