Skip to content

Commit

Permalink
update docker related files
Browse files Browse the repository at this point in the history
  • Loading branch information
AkselsLedins committed Apr 22, 2020
1 parent 12bbf97 commit d32957d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
11 changes: 3 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@ ADD . /usr/src/app
COPY . .

# dependencies
RUN go get github.com/jinzhu/gorm
RUN go get github.com/labstack/echo
RUN go get github.com/satori/go.uuid
RUN go get github.com/lib/pq
RUN go get github.com/dgrijalva/jwt-go
RUN go get github.com/algolia/algoliasearch-client-go/algoliasearch
RUN go build -o core .
RUN make deps
RUN make build

EXPOSE 1323

ENTRYPOINT [ "/usr/src/app/core" ]
ENTRYPOINT [ "/usr/src/app/core-api" ]
4 changes: 2 additions & 2 deletions Dockerfile.scratch
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM scratch
ADD core-api /
CMD ["/core-api"]
ADD core-api_unix /
CMD ["/core-api_unix"]
6 changes: 0 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,3 @@ services:
- "database:postgres"
ports:
- 8080:8080
pgadmin:
image: "fenglc/pgadmin4"
links:
- "database:postgres"
ports:
- "5050:5050"

0 comments on commit d32957d

Please sign in to comment.