blob: ac570c7069c515ac6d02290fe7aad87db5b05a61 (
plain) (
blame)
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
|
# Use a base image with build tools
FROM ubuntu:22.04
# Avoid interactive prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Install necessary build tools for your C project
RUN apt-get update && apt-get install -y \
build-essential \
wget \
unzip \
lua5.4 \
liblua5.4-dev \
&& rm -rf /var/lib/apt/lists/*
# Download and install Premake5
RUN wget https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-linux.tar.gz -O premake.tar.gz && \
tar -xvf premake.tar.gz && \
mv premake5 /usr/local/bin/
# Set the working directory inside the container
WORKDIR /app
COPY . .
# Creates the .lush config directory in the root user home directory as install.sh expects.
RUN mkdir -p /root/.lush && cp -r ./.lush/* /root/.lush/
CMD ["premake5", "gmake2"]
|