-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (36 loc) · 1.65 KB
/
Dockerfile
File metadata and controls
43 lines (36 loc) · 1.65 KB
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
36
37
38
39
40
41
42
43
# Get the ubuntu image from Docker Hub
FROM ubuntu:latest
# Labels
LABEL org.opencontainers.image.authors="DavideC03"
LABEL org.opencontainers.image.title="core createstructure"
LABEL org.opencontainers.image.url="https://github.com/createstructure/core-createstructure"
LABEL org.opencontainers.image.description DESCRIPTION
LABEL org.opencontainers.image.licences="GNU General Public License v3.0"
LABEL org.opencontainers.image.source="https://github.com/createstructure/core-createstructure"
LABEL org.opencontainers.image.documentation="https://raw.githubusercontent.com/createstructure/core-createstructure/main/docs/README.md"
# Copy the current folder which contains C++ source code to the Docker image under /usr/src
COPY ./ /usr/src/createstructure
# Specify the working directory
WORKDIR /usr/src/createstructure
# Install requirements
RUN apt-get update
RUN apt-get install g++ libssl-dev libcurl4-openssl-dev git -y
# Use G++ to compile the source file
RUN g++ -Wall -O3 ./bin/core.cpp \
./bin/local-libraries/getTemplate.cpp \
./bin/local-libraries/getUploadURL.cpp \
./bin/local-libraries/inputCheck.cpp \
./bin/local-libraries/priority.cpp \
./bin/local-libraries/repo.cpp \
./bin/local-libraries/repoInfoCheck.cpp \
./bin/local-libraries/workload.cpp \
./bin/global-libraries/bin/cryptation.cpp \
./bin/global-libraries/bin/rest.cpp \
./bin/global-libraries/bin/sleep.cpp \
-o core -lcurl -lcrypto
# Setup git
RUN git config --global user.email "help@castellanidavide.it"
RUN git config --global user.name "createstructure"
RUN git config --global init.defaultBranch "main"
# Run the program output from the previous step
ENTRYPOINT ["./core"]