Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
cablehead committed Sep 19, 2024
1 parent 8f6eba0 commit dd94b76
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/Dockerfile.release-docker
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
# Use a minimal Ubuntu base image
FROM ubuntu:latest

# Install necessary dependencies (optional)
RUN apt-get update && apt-get install -y libssl-dev
ARG NU_VERSION=0.98.0

RUN apt-get update && apt-get install -y libssl-dev curl

# Install Nushell
RUN curl -L https://github.com/nushell/nushell/releases/download/${NU_VERSION}/nu-${NU_VERSION}-x86_64-unknown-linux-gnu.tar.gz | \
tar -xz -C /usr/bin --strip-components=1 nu-${NU_VERSION}-x86_64-unknown-linux-gnu/nu && \
mkdir -p /root/.config/nushell && nu -c "config nu --default" > /root/.config/nushell/config.nu && nu -c "config env --default" > /root/.config/nushell/env.nu

# Install websocat
RUN curl -L -o /usr/bin/websocat https://github.com/vi/websocat/releases/download/v1.13.0/websocat_max.x86_64-unknown-linux-musl && \
chmod +x /usr/bin/websocat

# Create a directory to store the Rust binary
WORKDIR /app

# Copy the release binary from the build output
COPY target/release/xs /usr/local/bin/xs

# Expose the port that `xs serve` will use
EXPOSE 8080

# Run the CLI tool in serve mode
CMD ["xs", "serve", "/app/store"]

0 comments on commit dd94b76

Please sign in to comment.