Skip to content

Commit

Permalink
Merge pull request #5 from Ilhasoft/test/new_environment
Browse files Browse the repository at this point in the history
Added docker to develope branch
  • Loading branch information
matmsa27 authored Oct 29, 2019
2 parents a0ef334 + 4f90fbe commit 7a4283e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM golang:1.12.9-alpine3.9

WORKDIR /app

RUN apk update \
&& apk add --virtual build-deps gcc git \
&& rm -rf /var/cache/apk/*

RUN addgroup -S golang \
&& adduser -S -G golang golang

COPY . .

RUN go install -v ./cmd/...
RUN chown -R golang /app

USER golang

EXPOSE 8080
ENTRYPOINT ["rp-indexer"]
10 changes: 10 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "3"

services:
indexer:
image: ${DOCKER_IMAGE_NAME:-ilhasoft/indexer}:${DOCKER_IMAGE_TAG:-latest}
build:
context: ..
dockerfile: ./docker/Dockerfile
ports:
- 8080:8000

0 comments on commit 7a4283e

Please sign in to comment.