-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Contains files which should be ignored in the build context. | ||
|
||
# This includes large files and folders which might exist locally | ||
# but are not needed during docker build to speed up build time | ||
dist | ||
node_modules | ||
.git | ||
|
||
# and files which are equally not needed and would break the | ||
# build cache at an early step (COPY . ...) if changed. | ||
Dockerfile | ||
.dockerignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM node:16-alpine3.11 as build | ||
|
||
# Copy source code | ||
COPY . /src/openeo-web-editor | ||
WORKDIR /src/openeo-web-editor | ||
|
||
# Build | ||
RUN npm install | ||
RUN npm run build | ||
|
||
# Copy build folder and run with nginx | ||
FROM nginx:1.20.1-alpine | ||
COPY --from=build /src/openeo-web-editor/dist /usr/share/nginx/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters