mirror of
https://github.com/yawaflua/SpCloudCore.git
synced 2025-12-09 20:19:35 +02:00
Reworking spcloudmain and add a security policy
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
# Используйте официальный образ GCC в качестве базового
|
||||
FROM gcc:13
|
||||
|
||||
# Установите CMake и другие зависимости
|
||||
RUN apt-get update && \
|
||||
apt-get install -y cmake make
|
||||
|
||||
EXPOSE 8081
|
||||
# Создайте директорию для вашего проекта
|
||||
WORKDIR /app
|
||||
|
||||
# Скопируйте исходный код в контейнер
|
||||
COPY . /app
|
||||
|
||||
# Builing it
|
||||
RUN cmake .
|
||||
RUN cmake --build .
|
||||
WORKDIR /app/SpCloudMain
|
||||
# Укажите команду для запуска вашего приложения
|
||||
CMD ["./SpCloudMain"]
|
||||
Reference in New Issue
Block a user