Skip to main content

Questions tagged [dockerfile]

A Dockerfile is a file containing instructions to build a Docker image

2 votes
0 answers
89 views

Performance of a dockerfile that uses vcpkg, c++, rust, swift and npm

I have the following dockerfile, which builds a Backend and Frontend for a large project. The project uses the following technologies: C++ (using vcpkg as a package manager <-- very slow) Swift (...
user avatar
1 vote
0 answers
170 views

How to reduce the build time/cache Docker image layer in subsequent GitHub Actions runs?

I have a Dockerfile with ubuntu:22.04 as a base image and a manual Python installation(specific version i.e., 3.11.1) layer which takes a long time. How to cache ...
shaik moeed's user avatar
5 votes
2 answers
2k views

How to reduce the build time of Docker image layer in GitHub Actions?

I have a Dockerfile with ubuntu:22.04 as a base image and a manual Python installation(specific version i.e., 3.11.1) layer which takes a long time. Approach 1: ...
shaik moeed's user avatar
4 votes
2 answers
7k views

Install specific version of Python in docker

Downloading specific version like 3.11.1 from https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tgz and installing ...
Python coder's user avatar
7 votes
1 answer
2k views

Nginx Docker image with built from source with modules

I needed Nginx Docker image with additional modules (Lua and headers more) and Lua Prometheus lib. I did not want to use Openresty for that because its Alpine docker image weighs ~110MB, when Nginx ...
murtll's user avatar
  • 73
3 votes
1 answer
133 views

Docker project that deploys a RESTful API with Flask and MySQL

What's up? this is a small project to teach myself Docker. This Docker setup works, healthchecks pass for both app and mysql, app is initialized and is listening as expected, what I'm looking is a ...
aTEdushu's user avatar
1 vote
1 answer
53 views

Multistage Dockerfile to build a C project and copy things over to second stage

I wrote this Dockerfile (multi-stage) where the first stage builds the project and in the second stage we just copy the stuff over. I am wondering can I please get some feedback? more specifically the ...
Node.JS's user avatar
  • 429
1 vote
1 answer
397 views

Dockerfile of Vim + Plugins and .vimrc

What follows is a Dockerfile for my Vim settings, so I could use it anywhere. While it is public, it is not intended for mass usage, and so the face that it creates the password in the build process ...
Uberhumus's user avatar
  • 193
6 votes
1 answer
1k views

Implementation of Gitlab CI + Docker + Spring Boot

i would really appreciate if anyone could invest a bit of time to review what i did. Basically this is first time i do this, and that is reason why i need another set of eyes. I have Spring Boot ...
Sahbaz's user avatar
  • 351
2 votes
2 answers
154 views

First Dockerfile, I would appreciate critique

As the title says, this is my first Dockerfile. It won't be published on any registry, just for my internal use at home. I'd appreciate any critique of what I could do better. I'm currently working on ...
Logan M.'s user avatar
  • 131
5 votes
0 answers
860 views

Docker-compose for task-based Flask API with Redis and rq

I am not a Docker guru or expert in Flask or Redis. However, I need to leverage these technologies. I managed to cobble something together that works and would like to submit it for review. The MWE ...
SumNeuron's user avatar
  • 291
3 votes
1 answer
707 views

Reviewing the Dockerfile and docker-compose.yml files for a basic nodejs mysql project

I'm new to docker and after much research and stufy I've created a sample application and would like it to be reviewed in case if I'm missing any corner or if there's redundant information that can be ...
Developer's user avatar
  • 205
4 votes
1 answer
141 views

Dockerfile to generate a unit test image AND a production image

I use a single dockerfile to build and run the following images: Production application image: ...
Dave New's user avatar
  • 235
1 vote
1 answer
120 views

Dockerfile for C project

This is a Dockerfile which aims to create a complete environment for the bismon project. I have written it as an exercise and to make it easy for other users to begin with bismon. ...
Niklas Rosencrantz's user avatar
2 votes
1 answer
84 views

Dockerfile + CI for C build

I recently built a CI for my course project in C. I made 3 stages, to build docker image, compile my C sources and run the said project. That said, i think i could've do way better here but i don't ...
Artandor's user avatar
  • 121

15 30 50 per page