-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23b3f3f
commit 3152e6c
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM alpine:latest | ||
LABEL authors="tristan" | ||
|
||
# Install necessary packages | ||
RUN apk update && \ | ||
apk add --no-cache g++ boost-dev curl-dev cmake make | ||
|
||
# Verify the installations | ||
RUN g++ --version && \ | ||
ls /usr/include/boost | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Add your application source code to the container | ||
COPY . /app | ||
|
||
# Set the build type (default to Release, can be overridden at build time) | ||
ARG BUILD_TYPE=Release | ||
|
||
# Create a build directory and run cmake and make | ||
RUN mkdir -p build && cd build && \ | ||
cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} .. && \ | ||
cmake --build . && \ | ||
cd .. | ||
|
||
# Define the command to run your application | ||
ENV FAN_LIB "./lang" | ||
CMD ["./build/fan"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters