Skip to content

Commit 528a37d

Browse files
committed
Fixing dockerfile so it works in dokku
1 parent e6970ac commit 528a37d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@
2222
**/secrets.dev.yaml
2323
**/values.dev.yaml
2424
**/.idea
25+
**/build
2526
LICENSE
2627
README.md

CSharpier.sln

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ProjectSection(SolutionItems) = preProject
1414
.config\dotnet-tools.json = .config\dotnet-tools.json
1515
CSharpier.Build.props = CSharpier.Build.props
1616
Dockerfile = Dockerfile
17+
Dockerfile-Website = Dockerfile-Website
1718
.dockerignore = .dockerignore
1819
global.json = global.json
1920
CSharpier.Build.targets = CSharpier.Build.targets

Src/Website/Dockerfile Dockerfile-Website

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ FROM node:14-alpine AS base
22
EXPOSE 80
33

44
WORKDIR /src
5-
COPY ./package.json .
6-
COPY ./package-lock.json .
5+
COPY ./Src/Website/package.json .
6+
COPY ./Src/Website/package-lock.json .
77

88
RUN npm ci
99

10-
COPY . .
10+
COPY ./Src/Website/ .
1111
RUN npm run build
1212

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

0 commit comments

Comments
 (0)