Skip to content

Feature/Add Dockerfile#68

Merged
Hironsan merged 5 commits intodoccano:masterfrom
CatalystCode:feature/docker
Jan 25, 2019
Merged

Feature/Add Dockerfile#68
Hironsan merged 5 commits intodoccano:masterfrom
CatalystCode:feature/docker

Conversation

@c-w
Copy link
Member

@c-w c-w commented Jan 23, 2019

As per https://github.com/chakki-works/doccano/projects/2#card-16406087, this change adds a Dockerfile for the project.

The Python distribution used by the image can be specified via a build-time argument. This enables us in the future to for example run the tests on a wide variety of Python versions.

In the future, the Dockerfile could be extended to for example leverage multi-stage builds. In this case, the first stage could run tests, linter, and so forth and then create a wheel or similar artifact via setuptools. A second stage in the build can then only include a minimal set of dependencies to install and run the artifact (e.g. using python-slim as a base image).

c-w added 3 commits January 24, 2019 08:19
As per https://github.com/chakki-works/doccano/projects/2#card-16406087,
this change adds a Dockerfile for the project.

The Python distribution used by the image can be specified via a
build-time argument. This enables us in the future to for example run
the tests on a wide variety of Python versions.

In the future, the Dockerfile could be extended to for example leverage
multi-stage builds. In this case, the first stage could run tests,
linter, and so forth and then create a wheel or similar artifact via
setuptools. A second stage in the build can then only include a minimal
set of dependencies to install and run the artifact (e.g. using
python-slim as a base image).
@c-w c-w force-pushed the feature/docker branch 2 times, most recently from 2ca28cb to c72a7c4 Compare January 24, 2019 14:39
Also: ignore files generated during application run which enables a
better development experience in Docker with source mounts like
`docker run -p 8080:80 -v $PWD:/doccano -it doccano`.
@BrambleXu BrambleXu added the feature request feature request for doccano label Jan 25, 2019
@Hironsan Hironsan assigned Hironsan and unassigned c-w Jan 25, 2019
@Hironsan Hironsan merged commit d9e15e4 into doccano:master Jan 25, 2019
@Hironsan
Copy link
Member

Thanks for your contribution!

@c-w c-w deleted the feature/docker branch March 22, 2019 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature request feature request for doccano

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants