H
H
HexUserHex2020-02-12 14:29:41
Docker
HexUserHex, 2020-02-12 14:29:41

Looking for docker images with required software installed?

Good afternoon,
I'm looking for a Docker image based on Alpine containing ideally python 3.7.3 (or maybe a little lower) , php , apache .

I tried to compile / write a Dockerfile on my own, but alas, it didn’t work out yet (you need to install a bunch of dependencies, half of which either do not exist or are not set for some reason I don’t understand), what is the easiest way to solve this problem? To my shame, I could not even find the required version of python using apk search python3 ..
I looked for ready-made images on dockerhub, but also without results.

PS: Who agrees to help for $ write. The goal is to virtualize ready-made working scripts (php, python3).
Ladies scripts, I'll show you exactly how they work.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrew, 2020-02-12
@deepblack

What is the easiest way to solve this problem?

Throw out docker.
Docker philosophy: one service - one container.
You have everything in a heap: python, puff and Apache.
If you really want to use Docker, then
spread it across different containers, use docker-compose

D
Dmitry, 2020-02-12
@q2digger

And what are the problems? Go to hub.docker.com, find python there, open tags and search.
Everything is.

➜  ~ docker pull python:3.7-alpine
3.7-alpine: Pulling from library/python
c9b1b535fdd9: Pull complete
2cc5ad85d9ab: Pull complete
53a2fca3c2ea: Pull complete
30fce49de8b1: Pull complete
ca406aaf66e0: Pull complete
Digest: sha256:4e91ff3eed8bdd013178b6d8e55f656b394aeea42945f04389e4af5462e7cb6d
Status: Downloaded newer image for python:3.7-alpine
docker.io/library/python:3.7-alpine

D
Dmitry Shitskov, 2020-02-12
@Zarom

The task is solved through, for example, docker-compose.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question