Public | Automated Build

Last pushed: a year ago
Short Description
Phoenix Framework on Alpine Linux
Full Description

docker-phoenixframework

Run Phoenix Framework on Alpine Linux docker image.

Setup docker image

Method 1: Building

# docker build --rm -t <username>/phoenixframework .

Method 2: Pull from Docker Hub

# docker pull docker.io/<username>/phoenixframework

Test

  • setup:

    mkdir -p app dotHex
    docker run --rm -v "$PWD/app":/app -v "$PWD/dotHex:/root/.hex" \
        koyeung/phoenixframework phoenix.new /app --app=hello_phoenix
    docker run --rm -v "$PWD/app":/app -v "$PWD/dotHex:/root/.hex" \
        koyeung/phoenixframework deps.get
    docker run --rm -v "$PWD/app":/app -v "$PWD/dotHex:/root/.hex" \
        --entrypoint npm koyeung/phoenix install
    
  • run:

    docker run --rm -v "$PWD/app":/app -v "$PWD/dotHex:/root/.hex" \
      -p 4000:4000 \
      koyeung/phoenixframework phoenix.server
    

    Browse to http://localhost:4000 for the Phoenix Framework welcome page

Docker Pull Command
Owner
koyeung
Source Repository