Skip to content

Instantly share code, notes, and snippets.

@sjwaight
Created October 22, 2017 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjwaight/cc868e8ae638aa00844396ac4a371957 to your computer and use it in GitHub Desktop.
Save sjwaight/cc868e8ae638aa00844396ac4a371957 to your computer and use it in GitHub Desktop.
Updated dockerignore file to get VSTS to build ASP.Net Core 2.0 correctly for Docker deployment.
bin/
obj/
!*.dll
!obj/Docker/publish/*
!obj/Docker/empty/
@rifaterdemsahin
Copy link

this update gives an error when deploying from local

Severity Code Description Project File Line Suppression State
Error   Building translink.services.instrumentation.apix[7008] Failed to execute script docker-composeTraceback (most recent call last):  File "site-packages\docker\utils\build.py", line 179, in create_archivePermissionError: [Errno 13] Permission denied: 'C:\Users\User\Source\Repos\xxxx\.vs\xxxxx.Services.Instrumentation\v15\Server\sqlite3\db.lock'During handling of the above exception, another exception occurred:Traceback (most recent call last):  File "docker-compose", line 6, in   File "compose\cli\main.py", line 71, in main  File "compose\cli\main.py", line 127, in perform_command  File "compose\cli\main.py", line 282, in build  File "compose\project.py", line 373, in build  File "compose\service.py", line 1027, in build  File "site-packages\docker\api\build.py", line 154, in build  File "site-packages\docker\utils\build.py", line 31, in tar  File "site-packages\docker\utils\build.py", line 183, in create_archiveOSError: Can not read file in context: C:\Users\User\Source\Repos\TRN-Instrumentation.vs\xxxx.xxxx.xxxxx\v15\Server\sqlite3\db.lock.For more troubleshooting information, go to http://aka.ms/DockerToolsTroubleshooting xxxxx.xxxx.xxxx.Apix   0  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment