Skip to content

Commit feb2768

Browse files
FreakTheMightyzellski
authored andcommitted
Added sdk to dockerignore
I've added the sdk directory to the docker ignore. With the SDK ignored, we can install the SDK before adding the project source. This allows the docker image to preserve most of the layer caches when source code is changed.
1 parent 3c57e62 commit feb2768

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.dockerignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.dockerignore
22
Dockerfile
3-
3+
sdk

Dockerfile

+7-6
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@ RUN apt-get update && \
1010
pip install conan && \
1111
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
1212

13+
# Install FBX SDK
14+
RUN mkdir -p /fbx2gltf/sdk/Linux/2019.2 && \
15+
curl -L https://www.autodesk.com/content/dam/autodesk/www/adn/fbx/20192/fbx20192_fbxsdk_linux.tar.gz -o fbx20192_fbxsdk_linux.tar.gz && \
16+
tar -xvf fbx20192_fbxsdk_linux.tar.gz && \
17+
echo "yes\nn" | ./fbx20192_fbxsdk_linux /fbx2gltf/sdk/Linux/2019.2 && \
18+
rm -rf /fbxsdktemp
19+
1320
COPY . /fbx2gltf
1421

1522
WORKDIR /fbx2gltf
1623

17-
# Install FBX SDK
18-
RUN curl -L https://www.autodesk.com/content/dam/autodesk/www/adn/fbx/20192/fbx20192_fbxsdk_linux.tar.gz -o fbx20192_fbxsdk_linux.tar.gz && \
19-
tar -xvf fbx20192_fbxsdk_linux.tar.gz && \
20-
echo "yes\nn" | ./fbx20192_fbxsdk_linux /fbx2gltf/sdk/Linux/2019.2 && \
21-
rm -rf /fbxsdktemp
22-
2324
# Build and install
2425
RUN conan install . -i docker-build -s build_type=Release -s compiler=gcc -s compiler.version=5 -s compiler.libcxx=libstdc++11 && \
2526
conan build -bf docker-build . && \

0 commit comments

Comments
 (0)