Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Build docker image miry/medup
Browse files Browse the repository at this point in the history
  • Loading branch information
miry committed Dec 4, 2019
1 parent c7fa5ae commit cf2de8b
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
@@ -0,0 +1,6 @@
.*
bin/
Brewfile
Dockerfile
*.md
LICENSE
27 changes: 27 additions & 0 deletions Dockerfile
@@ -0,0 +1,27 @@
FROM crystallang/crystal:0.31.1 as builder

WORKDIR /app
COPY ./shard.yml /app/
RUN shards install

COPY . /app/
RUN shards build --production -v

FROM ubuntu:xenial
RUN \
apt-get update && \
apt-get install -y \
ca-certificates \
libssl1.0.0 \
libssl-dev \
libevent-2.0.5 \
libxml2-dev \
libyaml-dev \
libgmp-dev \
libevent-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /
COPY --from=builder /app/bin/medup .

ENTRYPOINT ["/medup"]
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -15,6 +15,12 @@ $ crystal run src/cli.cr -- -u miry -d posts/miry
$ crystal run src/cli.cr -- -u pftg -d posts/pftg
```

### Docker

```shell
$ docker run -v $(pwd)/posts:/posts -it miry/medup -u miry
```

## Development

## TODO
Expand All @@ -25,6 +31,7 @@ $ crystal run src/cli.cr -- -u pftg -d posts/pftg
- [ ] Create posts from local Markdown articles
- [ ] Update a post content from local files
- [ ] Extract posts from Publishers
- [ ] Create Rake task management

## Play ownself

Expand Down

0 comments on commit cf2de8b

Please sign in to comment.