Skip to content

Commit 9dd2b43

Browse files
committed
fixing container build tool
1 parent 3fdc40b commit 9dd2b43

6 files changed

+103
-1379
lines changed

Dockerfile.tasks-build

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM --platform=$TARGETPLATFORM node:18-bullseye AS tasks-builder
22
COPY tasks /srv/tasks
33
COPY api /srv/api
4+
COPY configuration /srv/configuration
45
WORKDIR /srv/tasks
56
RUN npm install
67
RUN npm run build:production

Dockerfile.ui-build

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ LABEL org.opencontainers.image.source=https://github.com/CoEDL/nyingarn-workspac
33
LABEL org.opencontainers.image.description="The Nyingarn Workspace UI container"
44
LABEL org.opencontainers.image.licenses=GPLv3
55

6-
RUN apt-get update && apt-get install -y nginx-extras
7-
RUN rm /etc/nginx/conf.d/default.conf /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
6+
# RUN apt-get update && apt-get install -y nginx-extras
7+
RUN rm /etc/nginx/conf.d/default.conf
88

99
COPY ./ui/dist/ /srv/ui/
1010

Dockerfile.ui-repository-build

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM nginx:latest
2+
LABEL org.opencontainers.image.source=https://github.com/CoEDL/nyingarn-workspace
3+
LABEL org.opencontainers.image.description="The Nyingarn Repository UI container"
4+
LABEL org.opencontainers.image.licenses=GPLv3
5+
6+
# RUN apt-get update && apt-get install -y nginx-extras
7+
RUN rm /etc/nginx/conf.d/default.conf
8+
9+
COPY ./ui-repository/dist/ /srv/ui/
10+
11+
CMD ["nginx", "-g", "daemon off;"]

build-production-containers.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if [ "$resp" == "y" ] ; then
5151
docker run -it --rm \
5252
-v $PWD/ui:/srv/ui \
5353
-v ui_node_modules:/srv/ui/node_modules \
54-
-w /srv/ui node:14-buster bash -l -c "npm run build"
54+
-w /srv/ui node:18-bullseye bash -l -c "npm run build"
5555
docker buildx build --push --rm --platform linux/amd64 \
5656
-t ghcr.io/coedl/nyingarn-workspace-ui:latest \
5757
-t ghcr.io/coedl/nyingarn-workspace-ui:${VERSION} \
@@ -61,9 +61,9 @@ if [ "$resp" == "y" ] ; then
6161
docker run -it --rm \
6262
-v $PWD/ui-repository:/srv/ui \
6363
-v ui_node_modules:/srv/ui/node_modules \
64-
-w /srv/ui node:14-buster bash -l -c "npm run build"
64+
-w /srv/ui node:18-bullseye bash -l -c "npm run build"
6565
docker buildx build --push --rm --platform linux/amd64 \
66-
-t ghcr.io/coedl/nyingarn-workspace-ui:latest \
67-
-t ghcr.io/coedl/nyingarn-workspace-ui:${VERSION} \
66+
-t ghcr.io/coedl/nyingarn-repository-ui:latest \
67+
-t ghcr.io/coedl/nyingarn-repository-ui:${VERSION} \
6868
-f Dockerfile.ui-build .
6969
fi

0 commit comments

Comments
 (0)