Skip to content
/ npmrun Public

A low-memory replacement for "npm run" written in Rust for Docker containers.

License

Notifications You must be signed in to change notification settings

nexryai/npmrun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npmrun

A low-memory replacement for "npm run" written in Rust for Docker containers.

Usage

FROM rust:1-alpine as npmrun-builder
WORKDIR /src

RUN apk add --no-cache git alpine-sdk

RUN git clone https://github.com/nexryai/npmrun.git .
RUN cargo build --release

FROM node:20-alpine3.19 AS builder

ARG NODE_ENV=production

########
# <Command to build your app>
########

FROM node:20-alpine3.19 AS runner

########
# <Copy files from builder>
########

COPY --from=npmrun-builder /src/target/release/npmrun /usr/local/bin/npmrun

ENV NODE_ENV=production
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["npmrun", "docker:start"]

Effects

Before

Before

After

After

About

A low-memory replacement for "npm run" written in Rust for Docker containers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages