Sign inSign up

ksurl/baseimage-python-alpine

By ksurl

•Updated almost 5 years ago

Image
0

994

ksurl/baseimage-python-alpine repository overview

⁠Docker python:alpine base image

  • Based on python:alpine
  • bash
  • s6-overlay

⁠Usage

⁠Dockerfile

FROM ghcr.io/ksurl/baseimage-python-alpine

⁠Config scripts

update root/etc/cont-init.d/30-config with any additional settings you may need to prepare before starting any services.

e.g. checking for config file, setting permissions, application version checking, package installs

⁠Create service

  1. Create folder in root/etc/services.d
  2. create run file and replace tail with your own command: #!/usr/bin/with-contenv bash exec s6-setuidgid abc /usr/bin/tail -f /dev/null
⁠Optional

Create finish file in the same folder as run for clean shutdown and replace pkill with your own command: #!/usr/bin/with-contenv bash exec s6-setuidgid abc /usr/bin/pkill tail

⁠Parameters

ParameterFunctionDefault
-e PUIDSet uid911
-e PGIDSet gid911
-e TZSpecify a timezone to useUTC

Tag summary

Content type

Image

Digest

Size

19.6 MB

Last updated

almost 5 years ago

docker pull ksurl/baseimage-python-alpine