Skip to content

Commit

Permalink
Fixing dockerfile so it works in dokku
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed Feb 21, 2022
1 parent e6970ac commit 528a37d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
**/secrets.dev.yaml
**/values.dev.yaml
**/.idea
**/build
LICENSE
README.md
1 change: 1 addition & 0 deletions CSharpier.sln
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ProjectSection(SolutionItems) = preProject
.config\dotnet-tools.json = .config\dotnet-tools.json
CSharpier.Build.props = CSharpier.Build.props
Dockerfile = Dockerfile
Dockerfile-Website = Dockerfile-Website
.dockerignore = .dockerignore
global.json = global.json
CSharpier.Build.targets = CSharpier.Build.targets
Expand Down
6 changes: 3 additions & 3 deletions Src/Website/Dockerfile → Dockerfile-Website
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ FROM node:14-alpine AS base
EXPOSE 80

WORKDIR /src
COPY ./package.json .
COPY ./package-lock.json .
COPY ./Src/Website/package.json .
COPY ./Src/Website/package-lock.json .

RUN npm ci

COPY . .
COPY ./Src/Website/ .
RUN npm run build

ENTRYPOINT npm run serve -- --port 80 --host 0.0.0.0

0 comments on commit 528a37d

Please sign in to comment.