Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

285
Visualizações
DockerFile / Switch from ubuntu:latest to alpine:3.3

I create my own docker file with the following, and everything works well:

FROM ubuntu:latest
apt-get update && apt-get upgrade -y
RUN apt-get -y  install  libxml2-dev libxslt1-dev python-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev python-pip python-setuptools python2.7 git tox

Now I try to switch to FROM alpine:3.3, so I wrote the following

FROM alpine:3.3
RUN apk add --no-cache libxml2-dev libxslt1-dev python-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev python-pip python-setuptools python2.7 git tox

But it gives me the following:

fetch http://dl-cdn.alpinelinux.org/alpine/v3.3/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  build-essential (missing):
    required by: world[build-essential]
  libssl-dev (missing):
    required by: world[libssl-dev]
  libxslt1-dev (missing):
    required by: world[libxslt1-dev]
  python-pip (missing):
    required by: world[python-pip]
  python-setuptools (missing):
    required by: world[python-setuptools]
  python2.7 (missing):
    required by: world[python2.7]
  tox (missing):
    required by: world[tox]
  zlib1g-dev (missing):
    required by: world[zlib1g-dev]

What can be the reason?

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Use frolvlad/alpine-python2 image.

FROM frolvlad/alpine-python2 RUN apk add --update alpine-sdk \ libxml2-dev \ libxslt-dev \ python-dev \ openssl-dev \ libffi-dev \ zlib-dev \ py-pip

And tox you can do install via pip

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda