forked from renz45/Android-CandyCodedApplication
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (16 loc) · 660 Bytes
/
Dockerfile
File metadata and controls
23 lines (16 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM thyrlian/android-sdk:2.6
ENTRYPOINT ["bash"]
# We need permision to the /opt/android-sdk before we define /src/app as our working directory
RUN groupadd projects && useradd --no-create-home -g projects projects && \
chown -R projects:projects /opt
WORKDIR /src/app
COPY . .
RUN \
chown -R projects:projects /src/app && \
mkdir -p /home/projects && \
chown -R projects:projects /home/projects
USER projects
# If we don't exclude the tests, they get run during the build
# We want all the dependencies installed (and even an initial build)
# But we don't wanna run the tests since they fail initially
RUN ["./gradlew", "build", "-x", "test"]