idk-man / Dockerfile
UnschooledGamer's picture
Update Dockerfile
7729b02 verified
FROM debian:stable
# Install necessary build dependencies
RUN apt-get update && apt-get install -y \
git \
build-essential \
libpthread-stubs0-dev \
curl \
libopus-dev \
libc6-dev \
libsodium-dev
# Set the working directory inside the container
WORKDIR /app
# Define arguments for the repository URL and branch name
ARG REPO_URL
ARG BRANCH_NAME
ENV TIMEOUT_MODE=disable
# Clone the repository
RUN git clone --recurse-submodules -j3 "${REPO_URL}" .
# Check out the specified branch
RUN git checkout --recurse-submodules "${BRANCH_NAME}"
COPY get-lit.sh /app/
# COPY sodium-linux-x64.so /app/bin/
# RUN destination_dir="./bin/opus/linux"; dpkg -L libopus-dev | grep -E 'libopus.so|libopus.a' | xargs -I {} sh -c 'ext="${1##*.}"; cp "$1" "${destination_dir}/x64.${ext}"' _ {}
# RUN destination_dir="./bin/opus/win32"; dpkg -L libopus-dev | grep -E 'libopus.so|libopus.a' | xargs -I {} sh -c 'ext="${1##*.}"; echo $1 $ext $destination_dir/x64.${ext}; pwd; cp "$1" "$destination_dir/x64.${ext}"' _ {}
COPY auth.lua /app/src/addon/auth.lua
# RUN mkdir -p ./bin/opus/linux
RUN export destination_dir="./bin" && dpkg -L libopus-dev | grep -E 'libopus.so|libopus.a' | xargs -I {} sh -c 'ext="${1##*.}"; echo "$1 $ext $destination_dir/opus-linux-x64.${ext}"; cp "$1" "$destination_dir//opus-linux-x64.${ext}"' -- {}
RUN export destination_dir="./bin" && dpkg -L libsodium-dev | grep -E 'libsodium.so|libsodium.a' | xargs -I {} sh -c 'ext="${1##*.}"; echo "$1 $ext $destination_dir/sodium-linux-x64.${ext}"; cp "$1" "$destination_dir/sodium-linux-x64.${ext}"' -- {}
RUN ls -la ./bin
RUN ls -la
RUN chmod 777 ./get-lit.sh
RUN ./get-lit.sh
RUN ls -al
RUN ./luvit --version
RUN ./lit install
COPY config-app.yml app.yml
CMD ["./luvit", "dev"]