mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-27 15:39:54 +03:00
[gulp] Update Dockerfile for the new organization. Need static tag now
This commit is contained in:
parent
8a555d29a3
commit
9e739879ea
1 changed files with 3 additions and 34 deletions
37
Dockerfile
37
Dockerfile
|
@ -12,41 +12,10 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
FROM node:slim
|
FROM nginx:alpine
|
||||||
|
|
||||||
MAINTAINER Jones MAGLOIRE @Joxit
|
MAINTAINER Jones MAGLOIRE @Joxit
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/share/nginx/html/
|
||||||
|
|
||||||
RUN npm install -g http-server && npm cache clean
|
COPY dist/ /usr/share/nginx/html/
|
||||||
|
|
||||||
COPY package.json /usr/src/app
|
|
||||||
|
|
||||||
RUN npm install \
|
|
||||||
&& find node_modules/ \
|
|
||||||
-maxdepth 1 -mindepth 1 -type d \
|
|
||||||
! -name riot \
|
|
||||||
! -name material-design-icons \
|
|
||||||
! -name material-design-* \
|
|
||||||
! -name dialog-polyfill \
|
|
||||||
! -name riotgear-router \
|
|
||||||
-exec rm -rf {} \; \
|
|
||||||
&& find node_modules/material-design-* \
|
|
||||||
-maxdepth 1 -mindepth 1 \
|
|
||||||
! -name package.json \
|
|
||||||
! -name iconfont \
|
|
||||||
! -name LICENSE \
|
|
||||||
! -name material* \
|
|
||||||
! -name dist \
|
|
||||||
-exec rm -rf {} \; \
|
|
||||||
&& find node_modules/material-design-lite/dist/ -maxdepth 1 -mindepth 1 \
|
|
||||||
! -name "*.js*" \
|
|
||||||
! -name "*.css*" \
|
|
||||||
-exec rm -rf {} \; \
|
|
||||||
&& npm cache clean
|
|
||||||
|
|
||||||
COPY . /usr/src/app
|
|
||||||
|
|
||||||
EXPOSE 8080
|
|
||||||
|
|
||||||
ENTRYPOINT http-server
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue