Skip to content

patlux/expo-cli-docker-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker images for expo-cli

Docker images with preinstalled expo-cli based on the node images.

Available docker 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.

Examples

You can find some usage examples in the examples/ folder.

Build

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

Run

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.

Login Example

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"

Publish

docker push -t patwoz/expo-cli