Skip to content

Commit

Permalink
fix: add binstub generation to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypicalpro committed Dec 9, 2020
1 parent 3bd8acc commit f7d5e46
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Dependency directory
node_modules
vendor
bin

# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
# Logs
Expand Down Expand Up @@ -72,6 +73,7 @@ typings/

# parcel-bundler cache (https://parceljs.org/)
.cache
.bundle

# next.js build output
.next
Expand Down
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
dist/
lib/
node_modules/
vendor/
vendor/
bin/
.bundle/
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Dependency directory
node_modules
vendor/
bin

# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
# Logs
Expand Down Expand Up @@ -72,6 +73,7 @@ typings/

# parcel-bundler cache (https://parceljs.org/)
.cache
.bundle

# next.js build output
.next
Expand Down
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ COPY --from=python-deps / /
COPY package*.json ./
RUN npm install --production

RUN bundle platform && bundle list
# Create binstubs and add them to the path
RUN bundle binstubs --all --path bin && bundle platform && bundle list
ENV PATH="${GITHUB_WORKSPACE}/bin:${PATH}"

# Test licensee
RUN licensee version

# move the rest of the project over
COPY dist ./dist

ENTRYPOINT ["bundle", "exec", "node", "dist/index.js"]
ENTRYPOINT ["node", "dist/index.js"]

0 comments on commit f7d5e46

Please sign in to comment.