Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Missing Python #1

Open
timogoosen opened this issue Oct 5, 2020 · 0 comments
Open

Missing Python #1

timogoosen opened this issue Oct 5, 2020 · 0 comments

Comments

@timogoosen
Copy link

timogoosen commented Oct 5, 2020

If I build it with the current dockerfile I get the error:

ERROR: unsatisfiable constraints:
  python (missing):
    required by: world[python]
The command '/bin/sh -c apk update && apk --no-cache add 	bash 	bash-completion 	curl 	less 	jq 	groff 	python 	py-pip && 	pip install --upgrade 	awscli' returned a non-zero code: 1

You can get around it by taking out python out of the list of packages to install. py-pip automatically installs python:


FROM alpine:latest
MAINTAINER Roustem <roustem@agilebits.com>

RUN apk update && apk --no-cache add \
	bash \
	bash-completion \
	curl \
	less \
	jq \
	groff \
	py-pip && \
	pip install --upgrade \
	awscli

RUN adduser -h /home/aws -s /bin/bash -D aws

USER aws
WORKDIR /home/aws
COPY entrypoint.sh /

RUN echo "export PAGER='less -R'" >> .profile
VOLUME ["/home/aws/.aws"]

ENTRYPOINT ["/entrypoint.sh"]

That should do the trick.

See stackoverflow post which is related:
https://stackoverflow.com/questions/62169568/docker-alpine-linux-python-missing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant