Code Monkey home page Code Monkey logo

nerddinner's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nerddinner's Issues

Image doesn't build using web Dockerfile

  1. Invalid references
  2. Step 2/13 : WORKDIR C:\src
    the working directory 'C:src' is invalid, it needs to be an absolute path

As per Directions.md

  1. Build the web app image
    docker image build -t nerd-dinner/web -f web\Dockerfile .

PS C:\docker\NerdDinner-master\NerdDinner-master> docker image build -t nerd-dinner/web -f web\Dockerfile .
Sending build context to Docker daemon 199.5 MB
Step 1/13 : FROM microsoft/dotnet-framework:4.7.2-sdk AS builder
Error parsing reference: "microsoft/dotnet-framework:4.7.2-sdk AS builder" is not a valid repository/tag: invalid reference format


Environment info using the latest AWS AMI for Windows Server 2016 with containers
(Maybe docker server version is too old and doesn't support format FROM [AS ] ??)

C:\Users\Administrator>docker info
Containers: 3
Running: 0
Paused: 0
Stopped: 3
Images: 24
Server Version: 1.12.2-cs2-ws-beta
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: nat null overlay
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 14393 (14393.2430.amd64fre.rs1_release_inmarket_aim.180806-1810)
Operating System: Windows Server 2016 Datacenter
OSType: windows
Architecture: x86_64
CPUs: 4
Total Memory: 16 GiB
Name: EC2AMAZ-SOUFROL
ID: VZIV:QABT:63VB:KUOW:4FOR:BTTB:QULZ:U7KS:CIZK:QWTU:63SI:65EG
Docker Root Dir: C:\ProgramData\docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false


Replacing all backslashes \ with forwardslashes /, and making the directory before setting workdir seems to make it work

escape=`

FROM microsoft/dotnet-framework:4.7.2-sdk

RUN mkdir C:/src
WORKDIR C:/src
COPY *.sln .
COPY NerdDinner/NerdDinner.csproj ./NerdDinner/
RUN nuget restore

COPY . C:/src
RUN msbuild NerdDinner/NerdDinner.csproj /p:OutputPath=c:/out /p:Configuration=Release

app image

FROM microsoft/aspnet:4.7.2-windowsservercore-ltsc2016
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]

ENV APP_ROOT=C:/web-app

WORKDIR ${APP_ROOT}
RUN Remove-Website -Name 'Default Web Site';New-Website -Name 'web-app' -Port 80 -PhysicalPath $env:APP_ROOT;
New-WebApplication -Name 'app' -Site 'web-app' -PhysicalPath $env:APP_ROOT

#COPY --from=microsoft/dotnet-framework:4.7.2-sdk C:/out/_PublishedWebsites/NerdDinner .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.