This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import http from "http"; | |
| import { Transform } from "stream"; | |
| const containerLogsOptions = (id: string) => ({ | |
| socketPath: "/var/run/docker.sock", | |
| path: `/containers/${id}/logs?follow=true&stdout=true&stderr=true`, | |
| method: "GET", | |
| headers: { | |
| "Content-Type": "application/json", | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM node:alpine as builder | |
| WORKDIR /usr/src/app | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| # npm run build runs the tsc transpiler |