Sign inSign up

chvanikoff/phoenix

By chvanikoff

•Updated over 9 years ago

Base image for phoenix-app container

Image
0

229

chvanikoff/phoenix repository overview

⁠Docker-Phoenix image

⁠Purpose

The image should be used as a base one for building your Phoenix app's image/container

⁠What's inside

AppVersion
Elixir1.4.2
Erlang19.3 erts-8.3.1
Hex0.16.0
Rebar2.6.4
Nodejs7.9.0
NPM4.5.0

⁠Example usage

FROM chvanikoff/phoenix
# Copy our project files to the image
COPY . /var/app/myapp
WORKDIR /var/app/myapp
# Set appropriate MIX_ENV
ENV MIX_ENV prod
# Install node dependencies and compile assets
RUN cd assets \
  && npm install \
  && node_modules/.bin/webpack --progress --colors
# Setup database, compile app and generate digest
RUN mix do ecto.setup, compile, phx.digest
# Run the app with iex shell open
CMD ["iex", "-S", "mix", "phx.server"]

Tag summary

Content type

Image

Digest

Size

358.3 MB

Last updated

over 9 years ago

docker pull chvanikoff/phoenix