My issue is as following. I have my setup for linux but every single image I create and try to deploy becomes a windows image. I do not want it to be a windows image but it just keeps creating.
I have followed the exact same steps on my other computer and there it works fine. Using the same yaml file and the same DockerFile.
How can I solve this?
Here under is my DockerFIle
# syntax=docker/dockerfile:1
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
WORKDIR /app
# Copy csproj and restore as distinct layers
COPY *.csproj ./
RUN dotnet restore
# Copy everything else and build
COPY . ./
RUN dotnet publish -c Release -o out
# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "ProjectName.dll"]
apiVersion: apps/v1
kind: Deployment
metadata:
name: platforms-depl
spec:
replicas: 1
selector:
matchLabels:
app: ProjectName
template:
metadata:
labels:
app: ProjectName
spec:
containers:
- name: ProjectName
image: namarog/ProjectName
and here is my yaml file.
This is all a setup on a fresh computer. This here is driving my crazy because I keep getting the Error: ImagePullBackOff
I dont understand what I am doing wrong.