Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
FROM node:slim

COPY . /action
WORKDIR /action

RUN npm install --production

ENTRYPOINT ["node", "/action/main.js"]
lt;usize> { let buf_len = buf.len(); loop { let read_bytes = self.current_chunk.read(buf)?; buf = &mut buf[read_bytes..]; if buf.is_empty() { return Ok(buf_len); } if let Some(next_chunk) = self.chunks.next() { self.current_chunk = next_chunk.as_bytes(); } else { return Ok(buf_len - buf.len()); } } } }