-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 721 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (22 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Use an appropriate base image
FROM ubuntu:24.04
# Install necessary dependencies (e.g., build tools, CMake, CURL, OpenSSL, Boost, WebSocket++, etc.)
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
curl \
libcurl4-openssl-dev \
libssl-dev \
libboost-system-dev \
libboost-thread-dev \
libwebsocketpp-dev \
xterm \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /app
# Copy project files into the container
COPY . /app
# Clean up any pre-existing build folder (if needed) and rebuild
RUN rm -rf build && mkdir build && cd build && cmake .. && make
# Set the entry point or default command
CMD ["./build/OrderExecutionSystem"]