Skip to content

Commit

Permalink
resolve build issue with netcat
Browse files Browse the repository at this point in the history
Build was failing with error about `netcat`…

```txt
#0 4.501 Package netcat is a virtual package provided by:
#0 4.501   netcat-openbsd 1.219-1
#0 4.501   netcat-traditional 1.10-47
#0 4.501
#0 4.505 E: Package 'netcat' has no installation candidate
```

According to Β«https://forums.docker.com/t/package-netcat-has-no-installation-candidate-how-to-fix-this/136541Β», the solution is to replace installation of `netcat` with `netcat-traditional` instead.  This worked in the local environment.
  • Loading branch information
sloanlance committed Jul 9, 2023
1 parent 6407d3a commit bf8df7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WORKDIR /code
COPY requirements.txt .
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential netcat vim-tiny jq git socat \
build-essential netcat-traditional vim-tiny jq git socat \
default-libmysqlclient-dev && \
pip install -r requirements.txt
COPY . .
Expand Down

0 comments on commit bf8df7b

Please sign in to comment.