50K+
Nim is a statically typed, imperative programming language focusing on efficiency and elegance.
Maintained by:
Nim Core Team
Where to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Dockerfile linksWhere to file issues:
https://github.com/nim-lang/docker-images/issues
Supported architectures: (more info)
amd64, arm32v7, arm64v8, i386
Published image artifact details:
repo-info repo's repos/nim/ directory (history)
(image metadata, transfer size, etc)
Image updates:
official-images repo's library/nim label
official-images repo's library/nim file (history)
Source of this description:
docs repo's nim/ directory (history)
Nim is a statically typed, imperative programming language that focuses on efficiency, expressiveness, and elegance. It is designed to be as fast as C and as readable as Python, while offering a powerful macro system for metaprogramming.
To compile a file named main.nim and execute it immediately:
$ docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app nim nim c -r main.nim
Nim can compile to JavaScript:
$ docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app nim nim js main.nim
To compile and run, use a multi-stage Dockerfile with Node.js:
FROM nim AS builder
COPY . .
RUN nim js -o:app.js src/app.nim
FROM node:latest
COPY --from=builder /usr/src/app/app.js .
CMD ["node", "app.js"]
The image is configured with SSL support to allow Nimble to install packages from remote repositories:
$ docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app nim nimble install -y
FROM nim
WORKDIR /usr/src/app
COPY *.nimble .
RUN nimble install --depsOnly -y
COPY . .
RUN nimble build
CMD ["./yourapp"]
View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's nim/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
Content type
Image
Digest
sha256:1878f19cd…
Size
169.9 MB
Last updated
7 days ago
docker pull nimPulls:
6,237
Last week
Docker Official Images are a curated set of Docker open source and drop-in solution repositories.
These images have clear documentation, promote best practices, and are designed for the most common use cases.