skip to Main Content

Alpine Linux Docker Image – Installing libnsl

I am using Alpine Linux 3.18 My base image is gradle:7.6.1-jdk17-alpine RUN export ALPINE_VERSION=$(cat /etc/alpine-release | cut -d "." -f 1-2) && ` rm /etc/apk/repositories && echo "@main local_nexus/repository/alpine-proxy/v$ALPINE_VERSION/main" > /etc/apk/repositories && echo "@community local_nexus/repository/alpine-proxy/v$ALPINE_VERSION/community" >> /etc/apk/repositories # Install build…

VIEW QUESTION

Docker – Secrets in Compose: Environment variable has file path as value instead of its content

I'm trying to use Secrets with Docker Compose Here is my Docker Compose (only the relevant parts): version: "3.8" services: My-Service: build: context: ./.. dockerfile: ./docker/Dockerfile image: my-app/api container_name: my-app-api environment: ASPNETCORE_ENVIRONMENT: Docker ASPNETCORE_URLS: http://+:8080 Swagger__Authentication__ClientSecret_FILE: /run/secrets/my_secret secrets: - my_secret…

VIEW QUESTION

Docker – Installing exe inside Windows container using PowerShell

I am facing problem with installation of .exe file inside docker container: FROM mcr.microsoft.com/dotnet/sdk:7.0 AS base SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] RUN dotnet tool install --global --version 7.3.11 PowerShell ADD https://downloads.unidata.ucar.edu/netcdf-c/4.9.2/netCDF4.9.2-NC4-DAP-64.exe lib/netCDF4.9.2-NC4-DAP-64.exe RUN start-process -Filepath "C:libnetCDF4.9.2-NC4-DAP-64.exe"…

VIEW QUESTION

Python/Flask app in docker compose – package missing error

Here is the Dockerfile FROM python:3.11 WORKDIR /usr/src/app COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt COPY src/ . EXPOSE ${SERVER_PORT} ENV FLASK_APP=application/app.py ENV FLASK_ENV=development CMD ["flask", "run", "--host=0.0.0.0"] docker-compose.yml version: '3.8' services: mysql: container_name: mysql image: mysql:latest restart:…

VIEW QUESTION
Back To Top
Search