alpine

How to add php gd extension to Dockerfile

扶醉桌前 提交于 2020-08-24 08:23:32
问题 I'm getting this error when trying to deploy using alpine: phpoffice/phpspreadsheet 1.2.1 requires ext-gd * -> the requested PHP extension gd is missing from your system. Here's my Dockerfile: FROM php:7.2-alpine RUN apk update RUN apk add zlib-dev gd php7-gd RUN docker-php-ext-install sockets pdo_mysql zip RUN apk add --no-cache libpng libpng-dev && docker-php-ext-install gd The error is an output from a jenkins run. I think it's failing somewhere around here... build: docker run --rm --tty

How to add php gd extension to Dockerfile

北慕城南 提交于 2020-08-24 08:23:11
问题 I'm getting this error when trying to deploy using alpine: phpoffice/phpspreadsheet 1.2.1 requires ext-gd * -> the requested PHP extension gd is missing from your system. Here's my Dockerfile: FROM php:7.2-alpine RUN apk update RUN apk add zlib-dev gd php7-gd RUN docker-php-ext-install sockets pdo_mysql zip RUN apk add --no-cache libpng libpng-dev && docker-php-ext-install gd The error is an output from a jenkins run. I think it's failing somewhere around here... build: docker run --rm --tty

Alpine linux in Docker container => `env: can't execute 'node': No such file or directory`

不问归期 提交于 2020-08-22 05:56:08
问题 I am installing Node.js version 8 in an Alpine linux container like so: RUN apk add --no-cache wget RUN wget http://nodejs.org/dist/v8.1.1/node-v8.1.1-linux-x64.tar.gz RUN sudo tar -C /usr/local --strip-components 1 -xzf node-v8.1.1-linux-x64.tar.gz RUN ls -l /usr/local/bin/node RUN ls -l /usr/local/bin/npm RUN ln -s /usr/local/bin/node /usr/bin/node RUN ln -s /usr/local/bin/npm /usr/bin/npm ENV PATH "/usr/local/bin:${PATH}" RUN echo "PATH env variable => '$PATH'" /usr/local/bin/node and /usr

error: command 'gcc' failed with exit status 1 when installing pip packages on alpine docker image

若如初见. 提交于 2020-08-09 06:13:51
问题 I'm attempting transition my base docker image from centos 7 to alpine, however I receive gcc errors when trying to install pip packages. This is a snippet of the error received: Successfully built backports.ssl-match-hostname configobj dpkt iniparse IPy kitchen logmatic-python maxminddb NeuroTools procfs pycparser python-json-logger pyudev repoze.lru scandir scapy Failed to build guppy kiwisolver numpy psutil pygpgme pyliblzma python-ldap pyxattr subprocess32 Installing collected packages:

Does alpine `apk` have an ubuntu `apt` `--no-install-recommends` equivalent

爱⌒轻易说出口 提交于 2020-08-01 03:08:22
问题 I'm trying to make the absolute smallest Docker image I can get away with, so I have switched from ubuntu as my base to alpine. For apt , I used to use --no-install-recommends to minimize "dependencies" installed with my desired packages. Is there an equivalent flag I need to pass along with apk or is this the default behavior for this slimmed down OS? 回答1: No it doesn't have the same flag I think because it does not even do the same behaviour of downloading recommended packages. However

Does alpine `apk` have an ubuntu `apt` `--no-install-recommends` equivalent

落花浮王杯 提交于 2020-08-01 03:06:35
问题 I'm trying to make the absolute smallest Docker image I can get away with, so I have switched from ubuntu as my base to alpine. For apt , I used to use --no-install-recommends to minimize "dependencies" installed with my desired packages. Is there an equivalent flag I need to pass along with apk or is this the default behavior for this slimmed down OS? 回答1: No it doesn't have the same flag I think because it does not even do the same behaviour of downloading recommended packages. However

Does alpine `apk` have an ubuntu `apt` `--no-install-recommends` equivalent

六月ゝ 毕业季﹏ 提交于 2020-08-01 03:06:13
问题 I'm trying to make the absolute smallest Docker image I can get away with, so I have switched from ubuntu as my base to alpine. For apt , I used to use --no-install-recommends to minimize "dependencies" installed with my desired packages. Is there an equivalent flag I need to pass along with apk or is this the default behavior for this slimmed down OS? 回答1: No it doesn't have the same flag I think because it does not even do the same behaviour of downloading recommended packages. However

Docker: Installing python cryptography on alpine linux distribution

大兔子大兔子 提交于 2020-07-09 02:36:41
问题 I am a little bit new to Docker and deployment cycle. I have Django application that we would like to deploy with uWSGI to docker container. Actually the deploy worked perfectly for a few weeks, but now it soundly report error... Error seam to be with cryptography package: build/temp.linux-x86_64-3.6/_openssl.c:52862:10: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] build/temp.linux-x86_64-3.6/_openssl.c: In function '_cffi_f

Installing seaborn on Docker Alpine

只愿长相守 提交于 2020-06-24 11:42:45
问题 I am trying to install seaborn with this Dockerfile: FROM alpine:latest RUN apk add --update python py-pip python-dev RUN pip install seaborn CMD python The error I get is related to numpy and scipy (required by seaborn ). It starts with: /tmp/easy_install-nvj61E/numpy-1.11.1/setup.py:327: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates and ends with File "numpy/core/setup.py", line 654, in get_mathlib_info RuntimeError: Broken

How to install Go in alpine linux

安稳与你 提交于 2020-06-24 08:13:28
问题 I am trying to install Go inside an Alpine Docker image. For that I downloaded tar file from here inside my alpine docker image, untar it using following command: tar -C /usr/local -xzf go1.10.3.linux-amd64.tar.gz exported PATH to have go binary as: export PATH=$PATH:/usr/local/go/bin However, when I say go version then it says that sh: go: not found . I am quite new to alpine. Does anyone know, what I am missing here? Steps to reproduce- $ docker run -it alpine sh $ wget https://dl.google