Docker images with preinstalled expo-cli
based on the node images.
image:TAG | node version | expo version | size |
---|---|---|---|
patwoz/expo-cli:3 |
lts-alpine |
3 |
~100 mb |
patwoz/expo-cli:4 |
lts-alpine |
4 |
~100 mb |
patwoz/expo-cli:latest |
lts-alpine |
latest |
~100 mb |
You can find the docker images in the official docker registry.
You can find some usage examples in the examples/
folder.
docker build -t patwoz/expo-cli .
It builds a docker image based on node:lts-alpine
and with the latest
currently available expo-cli.
If you need another tag version of docker's node
image and/or expo-cli, you can pass the following build-arguments:
docker build . \
--build-arg NODE_VERSION=12 \
--build-arg EXPO_VERSION=3 \
-t patwoz/expo-cli
# copy friendly
docker build . --build-arg NODE_VERSION=12 --build-arg EXPO_VERSION=3 -t patwoz/expo-cli
You can run all commands which the expo-cli supports.
# running "expo --help"
docker run -t patwoz/expo-cli --help
All arguments starting with a hyphen(-
) are passed directly to the expo command line.
docker run \
-e "EXPO_CLI_PASSWORD=password" \
-t patwoz/expo-cli \
expo login --non-interactive --username="patwoz"
Success. You are now logged in as patwoz.
# copy friendly
docker run -e "EXPO_CLI_PASSWORD=password" -t patwoz/expo-cli expo login --non-interactive --username="patwoz"
docker push -t patwoz/expo-cli