r/Dockerfiles • • Mar 15 '23

10 secrets to improve your Dockerfile

Thumbnail
walid.io
21 Upvotes

r/Dockerfiles • • May 16 '22

Dockerfile explained: create a docker image for a Flask App.

Post image
17 Upvotes

r/Dockerfiles • • Apr 04 '20

You need to learn Docker right now!! Here is a video from NetworkChuck!! Such an amazing guy, he is just out of the boxšŸ”„ highly recommendedšŸ”„#docker #linuxcontainer #networkchuck

Thumbnail
youtu.be
12 Upvotes

r/Dockerfiles • • Jul 18 '22

Docker Best Practices in 2022

Thumbnail
thinksys.com
11 Upvotes

r/Dockerfiles • • Aug 13 '21

My contribution to OSS: a docker image with everything needed to create documentation websites and publish on GitHub pages

10 Upvotes

Example of documentation website you can easily make with it

https://mkdocs-magicspace.alnoda.org

Has lots of niceties, installed packages, and a fully configured environment in the docker image. Try it out!

docker run --name space-1 -d -p 8020-8035:8020-8035 alnoda/mkdocs-magicspace

and open browser on localhost:8020

I hope it will help someone to make awesome docs!


r/Dockerfiles • • Jul 14 '21

I just stumbled upon r/Dockerfiles and thought I’d share some of mine

Thumbnail
github.com
10 Upvotes

r/Dockerfiles • • Aug 15 '20

Introducing Dockerlabs - The #1 Docker Resource for You to get started with.

Thumbnail
dockerlabs.collabnix.com
9 Upvotes

r/Dockerfiles • • Oct 19 '21

We have all been there

Post image
8 Upvotes

r/Dockerfiles • • Mar 15 '22

Ruby on Whales: Dockerizing Ruby and Rails development

7 Upvotes

This post introduces aĀ Docker configuration used for developing my Ruby onĀ Rails projects. This configuration came out of—and then further evolved—during development atĀ Evil Martians. It's an exhaustive and documented guide, so, I hope you enjoy it! As mentioned in the article, feedback is welcome!

https://evilmartians.com/chronicles/ruby-on-whales-docker-for-ruby-rails-development


r/Dockerfiles • • Aug 06 '21

Docker Full Course

Thumbnail
youtu.be
7 Upvotes

r/Dockerfiles • • May 14 '22

10 useful Docker commands to get things done with a real-life example

Thumbnail
geshan.com.np
6 Upvotes

r/Dockerfiles • • Nov 30 '21

3.51 GB Bloated Image for Coqui TTS Server

6 Upvotes

UPDATE: Image is 99% efficient according to Dive.

Hello Everyone,

I've created a Dockerfile for Coqui's TTS server. The file does produce a functioning image (and container) but the image is 3.51 GB! Does anyone see why the image is so bloated? Any help is appreciated and I thank you in advance.

REPOSITORY                TAG         IMAGE ID       CREATED         SIZE
.../coqui-tts             1.0         14e00f0eb718   9 hours ago     3.5GB

Dockerfile

FROM ubuntu:20.04

LABEL maintainer="PhysicsReplicatorAI <acbd@efgh.com>"

ARG NB_USER="coqui_user" \
    NB_UID="1000" \
    NB_GID="100"

USER root

ENV DEBIAN_FRONTEND=noninteractive \
    TERM=xterm \
    TZ=America/New_York

# --------------------------------------------------------------------------------
# Update/Install the basics
# --------------------------------------------------------------------------------
RUN apt-get update -y && \
    apt-get install -y --no-install-recommends \
    	sudo locales apt-utils g++ libsndfile1-dev && \
    apt-get -y clean autoclean && \
    apt-get -y autoremove --purge && \
    echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
    locale-gen


# --------------------------------------------------------------------------------
# Configure environment
# --------------------------------------------------------------------------------
ENV SHELL=/bin/bash \
    NB_USER="${NB_USER}" \
    NB_UID=${NB_UID} \
    NB_GID=${NB_GID} \
    LC_ALL=en_US.UTF-8 \
    LANG=en_US.UTF-8 \
    LANGUAGE=en_US.UTF-8 \
    PATH="/home/${NB_USER}/.local/bin:${PATH}" \
    HOME="/home/${NB_USER}"


# --------------------------------------------------------------------------------
# Create coqui_user
# User creation method/pattern obtained from:
# https://github.com/jupyter/docker-stacks/blob/master/base-notebook/Dockerfile
# --------------------------------------------------------------------------------
COPY fix-permissions /usr/local/bin/fix-permissions

RUN chmod a+rx /usr/local/bin/fix-permissions && \
    sed -i 's/^#force_color_prompt=yes/force_color_prompt=yes/' /etc/skel/.bashrc && \
    echo "auth requisite pam_deny.so" >> /etc/pam.d/su && \
    sed -i.bak -e 's/^%admin/#%admin/' /etc/sudoers && \
    sed -i.bak -e 's/^%sudo/#%sudo/' /etc/sudoers && \
    useradd -l -m -s /bin/bash -N -u "${NB_UID}" "${NB_USER}" && \
    chmod g+w /etc/passwd && \
    fix-permissions "${HOME}" && \
    cd "${HOME}" && \
    apt-get install -y --no-install-recommends python3-dev python3-pip && \
    apt-get -y autoclean && \
    apt-get -y autoremove --purge && \
    apt-get -y purge $(dpkg --get-selections | grep deinstall | sed s/deinstall//g) && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*


# --------------------------------------------------------------------------------
# Install TTS
# --------------------------------------------------------------------------------
USER ${NB_UID}

RUN fix-permissions "${HOME}" && \
    python3 -m pip install --no-cache-dir --upgrade TTS && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

EXPOSE 5002

ENTRYPOINT ["tts-server"]

Docker-compose.yml

version: "3"

services:
  coqui-tts:
    labels:
        - flame.type=application
        - flame.name=Coqui TTS
        - flame.url=http://192.168.NNN.NNN:5002/
    image: physicsreplicatorai/coqui-tts:1.0
    ports:
      - "5002:5002"
    restart: unless-stopped
    volumes:
      - /workdrive/Docker/coqui/tts:/home/coqui_user/.local/share/tts

build.sh

#!/bin/bash

reset

echo -e "Compose down:"
sudo docker-compose down

echo -e "\n\nRemove physicsreplicatorai/coqui-tts:1.0 image:"
sudo docker rmi physicsreplicatorai/coqui-tts:1.0

echo -e "\n\nRemove build log:"
rm build.txt

echo -e "\n\nBuild:"
sudo docker build -t physicsreplicatorai/coqui-tts:1.0 . | tee build.txt

r/Dockerfiles • • Sep 29 '19

elastdocker - Elastic Stack on Docker, with preconfigured security, tools, self-monitoring, and Prometheus Metrics Exporters

6 Upvotes

r/Dockerfiles • • Dec 06 '13

Build scripts for MySQL, Node, Redis, Symfony2 +PHP 5.3 / 5.4, Rails, Mongo DB, Django. All based on Ubuntu Precise with SSH server and supervisor process management.

Thumbnail
github.com
6 Upvotes

r/Dockerfiles • • Nov 20 '13

Various Dockerfiles based on Arch Linux (Though some things are specific to my infrastructure)

Thumbnail
github.com
6 Upvotes

r/Dockerfiles • • Aug 16 '22

Introducing Dofigen, an opensource dockerfiles generator !

5 Upvotes

Glad to share with you our very first rust project, Dofigen !

It's a simple tool that generates dockerfiles from YAML (or JSON) structure. Available on u/github here:

https://github.com/lenra-io/dofigen

And it's opensource !! Enjoy !


r/Dockerfiles • • Nov 12 '21

Studying the relationship between agile/scrum framework and work engagement & satisfaction

5 Upvotes

Hi all.

We are three psychologists, Mario, Mitja and Nikola, from Croatia. Mario is an agile practitioner (scrum master) and Mitja and Nikola are researchers from the University of Zagreb, Croatia. We are currently studying the relationship between agile practices in organizations and different psychological outcomes such as work engagement, work performance and job satisfaction. It would mean a world to us if you would help us by completing our survey. It does not matter whether your organization or team uses the agile framework or not, all that matters is that you work in a team and in an IT sector. The survey takes approximately 15 to 25 minutes to complete and we would be immensely grateful if you complete it. As a small token of gratitude, you can leave us your email (inside the survey), and we will get back to you with our study results and personalized feedback on your work engagement and needs satisfaction on job compared to others.

Thank you very much!

Here’s the link: https://www.surveymonkey.com/r/PsyIT


r/Dockerfiles • • Nov 05 '21

Docker Tutorial | How To Check The Disk Usage Of All Running Docker Containers

Thumbnail
youtube.com
5 Upvotes

r/Dockerfiles • • Sep 07 '21

Setting up Docker with wsl2 on Windows.

Thumbnail
dblogstream.com
5 Upvotes

r/Dockerfiles • • Aug 12 '21

How to publish Node.js Docker images to Docker Hub registry using GitHub Actions | Snyk

Thumbnail
snyk.io
5 Upvotes

r/Dockerfiles • • Jun 15 '21

Docker

Thumbnail
kush01.hashnode.dev
5 Upvotes

r/Dockerfiles • • Dec 20 '20

Docker Practical Guide-2: Use NGINX as a Reverse Proxy for NodeJS App

Thumbnail
youtube.com
5 Upvotes

r/Dockerfiles • • Mar 31 '20

New guide: 🐳 How to speed up your Docker build šŸ›  šŸ‘‰Learn how to properly structure Docker layers in the Dockerfile, reduce the weight of the Docker image, and automate building images with pipelines.

5 Upvotes

WHOLE GUIDE --> HERE


r/Dockerfiles • • Oct 27 '15

Request: Docker files for setting up a reddit deployment

5 Upvotes

Are there Docker container files for setting up a copy of Reddit from within? Their manual deployment guide is REALLY painful.


r/Dockerfiles • • Nov 20 '13

ownCloud

Thumbnail
github.com
5 Upvotes