dockerfile 0.1.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 37

dockerfile #

A library for manipulating Dockerfile

Usage #

A simple usage example:

import 'package:dockerfile/dockerfile.dart';

main() {
  var dockerfile = new Dockerfile();

  dockerfile.from('google/dart', tag: dartVersion);'pub', args: ['build']);
  dockerfile.add(somePath, otherPath);

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Changelog #

0.1.0 #

  • Dart 2

0.0.4 #

  • tidied a few things

0.0.3 #

  • Fix analyzer warnings

0.0.2 #

  • tidy dependency versions

0.0.1 #

  • Initial version, created by Stagehand


// Copyright (c) 2015, Anders Holmgren. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

library dockerfile.example;

main() {}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  dockerfile: ^0.1.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:dockerfile/dockerfile.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 4, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

Fix lib/src/dockerfile.dart. (-7.71 points)

Analysis of lib/src/dockerfile.dart reported 16 hints, including:

line 25 col 19: Unnecessary new keyword.

line 28 col 50: Use = to separate a named parameter from its default value.

line 29 col 19: Unnecessary new keyword.

line 32 col 53: Use = to separate a named parameter from its default value.

line 38 col 19: Unnecessary new keyword.

Fix lib/src/docker_command.dart. (-1 points)

Analysis of lib/src/docker_command.dart reported 2 hints:

line 21 col 13: Unnecessary new keyword.

line 97 col 30: Use = to separate a named parameter from its default value.

Maintenance suggestions

Package is getting outdated. (-50.41 points)

The package was last published 78 weeks ago.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <3.0.0
path ^1.6.2 1.6.4
quiver ^2.0.0+1 2.1.3
Transitive dependencies
matcher 0.12.6
meta 1.1.8
stack_trace 1.9.3