Skip to content

Commit

Permalink
Use Webpack to generate executable bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
astefanutti committed Nov 22, 2020
1 parent 4b0ff99 commit bd5f34a
Show file tree
Hide file tree
Showing 7 changed files with 1,083 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
!index.js
!package.json
!package-lock.json
!webpack.config.js
!webpack.hjs.language.js
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
!/lib/
!/lib/**/*

# Logs
*.log
bundle.js

# Sourcemap
*.js.map
*.js.map
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
FROM node:9.5.0-alpine as builder

ENV NODE_ENV production
FROM node:12.16.2-alpine3.11 as builder

WORKDIR /kubebox

COPY lib lib/
COPY package.json package-lock.json index.js ./
COPY package.json package-lock.json index.js webpack.config.js webpack.hjs.language.js ./

RUN npm install
RUN npm install -g browserify
RUN npm run bundle

FROM alpine:3.7
FROM alpine:3.11

ENV TERM xterm-256color
ENV LANG C.UTF-8
Expand Down
Loading

0 comments on commit bd5f34a

Please sign in to comment.