forked from Streptoco/EmbeddedProgrammingInLinux
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (30 loc) · 836 Bytes
/
Dockerfile
File metadata and controls
35 lines (30 loc) · 836 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
29
30
31
32
33
34
35
# Use a base image
FROM ubuntu:latest
# Set the working directory
WORKDIR /app
# Copy the necessary files to the container
COPY FlightService.cpp .
COPY myLibrary.h .
COPY myLibrary.cpp .
COPY full_schedule.h .
COPY full_schedule.cpp .
COPY arrivals.h .
COPY arrivals.cpp .
COPY airplane.h .
COPY airplane.cpp .
COPY signal_handler.h .
COPY signal_handler.cpp .
COPY error_handling.h .
COPY error_handling.cpp .
COPY zip.h .
COPY zip.cpp .
COPY pipe_handler.h .
COPY pipe_handler.cpp .
COPY node.h .
# Install required dependencies
RUN apt-get update && \
apt-get install -y build-essential libzip-dev
# Build the application
RUN g++ -o myapp FlightService.cpp myLibrary.cpp full_schedule.cpp arrivals.cpp airplane.cpp signal_handler.cpp error_handling.cpp zip.cpp pipe_handler.cpp
# Set the entry point
ENTRYPOINT ["./myapp"]