Skip to content

Commit 66cdb14

Browse files
authored
Merge pull request #68 from BrowserSync/defaults
Defaults
2 parents 7a8e7df + d749239 commit 66cdb14

File tree

90 files changed

+3219
-1433
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+3219
-1433
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
target
3+
*.node
4+
.cargo

Cargo.lock

Lines changed: 158 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ tempfile = "3.10.1"
3737
insta = { version = "1.38.0", features = ["yaml"] }
3838
miette = { version = "7.2.0", features = ["fancy", "syntect-highlighter"] }
3939
kill_tree = { version = "0.2.4", features = ["tokio"] }
40+
sqids = "0.4.2"
41+
tokio-util = "0.7.11"
4042

4143
[profile.release]
4244
strip = true

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Stage 1: Build the bsnext binary on Alpine (musl)
2+
FROM rust:alpine AS builder
3+
4+
RUN apk add --no-cache build-base perl openssl-dev openssl-libs-static
5+
6+
WORKDIR /app
7+
COPY . .
8+
ENV CFLAGS="-std=gnu17"
9+
ENV CI=true
10+
RUN cargo build --release --bin bsnext
11+
12+
# Stage 2: Verify it runs on a clean Alpine
13+
FROM alpine:latest
14+
15+
COPY --from=builder /app/target/release/bsnext /usr/local/bin/bsnext
16+
RUN bsnext --help
17+
CMD ["bsnext"]

0 commit comments

Comments
 (0)