You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying this out and building in docker. The image builds ok but when I try to run it I'm having trouble connecting to the app
This is what my docker file looks like
# syntax=docker/dockerfile:1
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
WORKDIR /app
# Copy csproj and restore as distinct layers
COPY . ./
RUN dotnet restore
RUN dotnet build
RUN cd EdbServer && dotnet build
EXPOSE 5000
EXPOSE 5001
ENTRYPOINT ["sh", "entry.sh"]
entry.sh looks like this
cd EdbServer && dotnet run
EdbServer is the project with Giraffe in it.
I'm building the docker image and running it with this command docker run -p 5000:5000 -p 5001:5001 {dockerImage}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying this out and building in docker. The image builds ok but when I try to run it I'm having trouble connecting to the app
This is what my docker file looks like
entry.sh looks like this
EdbServer
is the project with Giraffe in it.I'm building the docker image and running it with this command
docker run -p 5000:5000 -p 5001:5001 {dockerImage}
Also I'm using version 6 alpha 2.
Beta Was this translation helpful? Give feedback.
All reactions