##// END OF EJS Templates
release: Bump version 5.0.2 to 5.0.3
release: Bump version 5.0.2 to 5.0.3

File last commit:

r5233:49f00b60 default
r5442:2f8a70c4 v5.0.3 stable
Show More
static-build.dockerfile
39 lines | 1.1 KiB | text/plain | DockerLexer
/ static-build.dockerfile
dev(static-files): new way of building static files
r5233 ## HOW TO: ##
##
## build this image add --no-cache for forced-build:
## ** BUILD **
# docker build --tag rhodecode/static-files-build:16 -f static-build.dockerfile .
# docker build --tag rhodecode/static-files-build:18 -f static-build.dockerfile .
## run grunt on top of the source code
## cd rhodecode-enterprise-ce
## docker run --rm -v $PWD:/project --workdir=/project rhodecode/static-files-build grunt
## ** GENERATE **
## docker run -it --entrypoint bash --rm -v $PWD:/project --workdir=/project rhodecode/static-files-build:16 -c "npm install && grunt -v"
# THIS WORKS NOW
FROM node:16-buster
#FROM node:18-buster
WORKDIR /static_build
RUN apt-get update \
&& apt-get install --no-install-recommends --yes \
curl \
zip \
&& apt-get autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# make node scripts visible
ENV \
PATH=/static_build/node_modules/.bin:/project/node_modules/.bin:$PATH \
NODE_PATH=/node_modules/.bin/node_mod \
WEBPACK=/static_build/node_modules/.bin/webpack \
GRUNT=/static_build/node_modules/.bin/grunt
WORKDIR /project
ENTRYPOINT ["bash"]