diff --git a/Dockerfile.Executable b/Dockerfile.Executable new file mode 100644 index 00000000..d5ae4da8 --- /dev/null +++ b/Dockerfile.Executable @@ -0,0 +1,20 @@ +# Creates a docker image with only the app as an executable unit +# Dependencies need to be installed beforehand +# Needs to be build beforehand +# docker build -t registry.gitlab.com/openstapps/app/executable:core-x.y -f Dockerfile.Executable . +FROM node:10-alpine + +WORKDIR /app +COPY . /app + +# To use ng directly +ENV PATH /app/node_modules/.bin:$PATH + +EXPOSE 8100 + +# Because the dependencies were installed from the builder-Image, +# or locally, we need to rebuild node-sass library +RUN npm rebuild node-sass + +# Starts the app +CMD ng run app:serve --host=0.0.0.0 --port=8100 \ No newline at end of file