Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into empty-search-forever-…
Browse files Browse the repository at this point in the history
…loads
  • Loading branch information
vocksel committed Jul 20, 2024
2 parents 3c85965 + 78540e9 commit 9ce46c0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# syntax=docker/dockerfile:1

FROM rust:1.75.0 AS build-lune
FROM rust:1.75.0 AS lune

RUN apt-get update && apt-get install -y git gcc
ARG LUNE_VERSION="0.8.6"

# HACK: Need to install Lune from its main branch to bind servers to 0.0.0.0
RUN git clone https://github.com/lune-org/lune
RUN cargo build --release --manifest-path lune/Cargo.toml
WORKDIR /app

RUN apt-get update && apt-get install -y curl unzip
RUN curl -LJO https://github.com/lune-org/lune/releases/download/v${LUNE_VERSION}/lune-${LUNE_VERSION}-linux-aarch64.zip
RUN unzip *.zip

FROM ubuntu:24.04 AS server

Expand All @@ -17,6 +19,6 @@ COPY . .
# The server spawns processes for these commands
RUN apt-get update && apt-get install -y curl unzip

COPY --from=build-lune ./lune/target/release/lune /usr/local/bin
COPY --from=lune /app/lune /usr/local/bin

CMD ["lune", "run", "src/server.luau"]

0 comments on commit 9ce46c0

Please sign in to comment.