Run s/ADD/COPY/g as appropriate

This commit is contained in:
Tianon Gravi
2014-09-09 10:55:38 -06:00
parent bc66d39567
commit 1a4cb7bf1b
18 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
For this image, the most straight-forward use is to use a java container as both the build environment as well as the runtime environment. In your Dockerfile, you can do something along the lines of the following will compile and run your project.
FROM java:7
ADD . /usr/src/myapp
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
RUN javac Main.java
CMD ["java", "Main"]
+1 -1
View File
@@ -13,7 +13,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
For this image, the most straight-forward use is to use a java container as both the build environment as well as the runtime environment. In your Dockerfile, you can do something along the lines of the following will compile and run your project.
FROM java:7
ADD . /usr/src/myapp
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
RUN javac Main.java
CMD ["java", "Main"]