Skip to content

Commit

Permalink
Updated URIs to currents versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rs38 authored Oct 25, 2016
1 parent 890f4ff commit 24ba4f5
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions windows-container-samples/sqlite/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
# This dockerfile utilizes components licensed by their respective owners/authors.
# Prior to utilizing this file or resulting images please review the respective licenses at: https://www.sqlite.org/copyright.html

# keep in mind that the SQLite Versions and download URIs change very often!

FROM microsoft/windowsservercore

LABEL Description="SQLite" Vendor="SQLite" Version="3.12.0"
LABEL Description="SQLite" Vendor="SQLite" Version="3.14.2"

RUN powershell -Command \
$ErrorActionPreference = 'Stop'; \
Invoke-WebRequest -Method Get -Uri https://www.sqlite.org/2016/sqlite-dll-win64-x64-3120000.zip -OutFile c:\sqlite-dll-win64-x64-3120000.zip ; \
Invoke-WebRequest -Method Get -Uri https://www.sqlite.org/2016/sqlite-dll-win64-x64-3140200.zip -OutFile c:\sqlite-dll-win64-x64-3120000.zip ; \
Expand-Archive -Path c:\sqlite-dll-win64-x64-3120000.zip -DestinationPath c:\sqlite ; \
Remove-Item c:\sqlite-dll-win64-x64-3120000.zip -Force

RUN powershell -Command \
$ErrorActionPreference = 'Stop'; \
Invoke-WebRequest -Method Get -Uri "https://www.sqlite.org/2016/sqlite-tools-win32-x86-3120000.zip" -OutFile c:\sqlite-tools-win32-x86-3120000.zip ; \
Expand-Archive -Path c:\sqlite-tools-win32-x86-3120000.zip -DestinationPath c:\sqlite ; \
Copy-Item -Path c:\sqlite\sqlite-tools-win32-x86-3120000\*.* c:\sqlite ; \
Remove-Item c:\sqlite\sqlite-tools-win32-x86-3120000 -Recurse -Force ; \
Remove-Item c:\sqlite-tools-win32-x86-3120000.zip -Force
Invoke-WebRequest -Method Get -Uri "https://www.sqlite.org/2016/sqlite-tools-win32-x86-3150000.zip" -OutFile c:\sqlite-tools-win32-x86-3150000.zip ; \
Expand-Archive -Path c:\sqlite-tools-win32-x86-3150000.zip -DestinationPath c:\sqlite ; \
Copy-Item -Path c:\sqlite\sqlite-tools-win32-x86-3150000\*.* c:\sqlite ; \
Remove-Item c:\sqlite\sqlite-tools-win32-x86-3150000 -Recurse -Force ; \
Remove-Item c:\sqlite-tools-win32-x86-3150000.zip -Force

RUN setx /M PATH "%PATH%;c:\sqlite"

CMD ["sqlite3.exe"]
CMD ["sqlite3.exe"]

0 comments on commit 24ba4f5

Please sign in to comment.