amber_binary

Version, currently master branch1 version
  • master branchlatestJun 22, 2018

github.com/robacarp/amber_build

No description declared in shard.yml.

0 stars
0 dependents
License: not declared

Installation

# Add this to your shard.yml
dependencies:
  amber_binary:
    github: robacarp/amber_build
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.25.0
Target
  • amber from lib/amber/src/amber/cli.cr

Dependencies

Runtime Dependencies

  • amber~> 0.8.0github: amberframework/amber

README

Use this docker image as a base image for an Amber app deployment. It comes pre-installed with Crystal, Nodejs & NPM, and Amber.

FROM robacarp/amber_build:latest

ENV AMBER_ENV production
EXPOSE 3000

COPY config /app/config
COPY db /app/db
COPY public /app/public
COPY src /app/src

COPY package.json /app

COPY shard.yml /app
COPY shard.lock /app

WORKDIR /app
RUN shards install
RUN npm install
RUN npm run release

# change this to the name of your app
RUN shards build my_app --production

# change this to a valid url for your database
ENV DATABASE_URL postgres://my_app:@docker.for.mac.localhost:5432/my_app_development

ENTRYPOINT ["/bin/sh","-c"]

# change this to the name of your app
CMD ["/app/bin/my_app"]