-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (30 loc) · 975 Bytes
/
Dockerfile
File metadata and controls
41 lines (30 loc) · 975 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
36
37
38
39
40
41
# Use an official Ubuntu base image
FROM ubuntu:latest
# Set a non-interactive frontend to avoid user interaction during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Install necessary packages
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
libssl-dev \
uuid-runtime \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory inside the container to /app/Memify
WORKDIR /app/Memify
# Copy the entire project directory into the container
COPY . .
# Copy the config.ini.example file and rename it to config.ini
RUN cp config.ini.example ../config.ini
# Run CMake to configure the project
RUN cmake .
# Build the project using make
RUN make
# Expose the application's default port
EXPOSE 6379
# Add the entrypoint script
COPY entrypoint.sh /app/entrypoint.sh
# Make the script executable
RUN chmod +x /app/entrypoint.sh
# Set the entrypoint to the script
ENTRYPOINT ["/app/entrypoint.sh"]