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

Missing Python #1

@timogoosen

Description

@timogoosen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions