Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker-compose for khan #72

Merged
merged 3 commits into from
Mar 31, 2021
Merged

Add docker-compose for khan #72

merged 3 commits into from
Mar 31, 2021

Conversation

leonardo2204
Copy link
Contributor

This PR was originally created by @mathnogueira at #61.
Since this feature is very interesting, I created this PR from a fresh master and made a few tweaks

@leonardo2204 leonardo2204 self-assigned this Mar 31, 2021
docker-compose.yml Outdated Show resolved Hide resolved
@leonardo2204 leonardo2204 merged commit b75dc0c into master Mar 31, 2021
@leonardo2204 leonardo2204 deleted the khan-docker branch March 31, 2021 18:37
@@ -1,19 +1,20 @@
FROM golang:1.15.2-alpine

MAINTAINER TFG Co <backend@tfgco.com>
LABEL TFG Co <backend@tfgco.com>
WORKDIR /go/src/github.com/topfreegames/khan

EXPOSE 80

RUN apk update

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A suggestion here: it's good to chain multiple installation commands in the same RUN to avoid caching issues. (reference)

Here, we can chain 3 RUN commands:

RUN apk update && \
         apk add git make g++ apache2-utils curl && \
         apk add --update bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants