https://github.com/robacarp/amber_build
https://github.com/robacarp/amber_build
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/robacarp/amber_build
- Owner: robacarp
- Created: 2017-11-18T02:27:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-22T14:28:59.000Z (almost 8 years ago)
- Last Synced: 2025-03-30T19:12:28.261Z (about 1 year ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://hub.docker.com/r/robacarp/amber_build/)
Use this docker image as a base image for an Amber app deployment. It comes pre-installed with Crystal, Nodejs & NPM, and Amber.
```dockerfile
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"]
```