From 96915a4c0fd1b08510d63944718af01fa4b7d248 Mon Sep 17 00:00:00 2001 From: rasmus Date: Sun, 16 Mar 2025 12:56:53 +0100 Subject: [PATCH] Fixed dockerfile. It couldn't find the executable because I messed up the path. It works now. --- Dockerfile | 4 ++-- bin/Test => Test | Bin makefile | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename bin/Test => Test (100%) diff --git a/Dockerfile b/Dockerfile index 9635d8d..3e09dfc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,6 @@ FROM gcc:latest WORKDIR /app -COPY bin/hello_world /app/ +COPY bin/Test /app/ -CMD ["bin/hello_world"] +CMD ["./Test"] diff --git a/bin/Test b/Test similarity index 100% rename from bin/Test rename to Test diff --git a/makefile b/makefile index deb8de8..3e19f2e 100644 --- a/makefile +++ b/makefile @@ -1,7 +1,7 @@ # Makefile for hello.c -CC = g++ # C compiler -CFLAGS = -O2 # Compiler flags (optimization level) +CC = g++ +CFLAGS = -O2 SRC_DIR = src BUILD_DIR = build