Skip to content

Commit

Permalink
Fix/issue 114 (#115)
Browse files Browse the repository at this point in the history
* Do not remove nodejs directory

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>

---------

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu authored Jan 14, 2024
1 parent c91af90 commit 18865b5
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
48 changes: 48 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
###################
###################

project/project
.idea/
tests/smoke-test-repos
tests/**/node_modules
tests/**/package-lock.json
tests/**/package.json
cpg.bin
ast-for-funcs.json
cfg-for-funcs.json
pdg-for-funcs.json
platform/workspace
/workspace
.bloop
/.bsp
/gnupg-*
.local
**/astgen-win.exe
**/astgen-macos
**/astgen-macos-arm
**/astgen-linux
**/php2atom/bin
**/php2atom/vendor
/foo.c
/woo.c
.DS_Store
**/goastgen-windows.exe
**/goastgen-linux
**/goastgen-linux-arm64
**/goastgen-macos
**/goastgen-macos-arm64
slices.json

##############
# Nix flakes #
##############
.envrc
flake.nix
flake.lock
.direnv

.metals/

workspace/
app.atom

8 changes: 6 additions & 2 deletions ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LABEL maintainer="appthreat" \
org.opencontainers.image.authors="Team AppThreat <cloud@appthreat.com>" \
org.opencontainers.image.source="https://github.com/appthreat/chen" \
org.opencontainers.image.url="https://github.com/appthreat/atom" \
org.opencontainers.image.version="1.8.x" \
org.opencontainers.image.version="2.0.x" \
org.opencontainers.image.vendor="appthreat" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.title="atom" \
Expand Down Expand Up @@ -74,8 +74,12 @@ COPY ./target/atom.zip .
COPY ./wrapper .
RUN unzip -q atom.zip \
&& composer update --no-progress --prefer-dist --ignore-platform-reqs \
&& cd /opt/nodejs && npm install --only=production && cd /opt \
&& sudo npm install -g /opt/nodejs \
&& rm -rf atom.zip nodejs composer.json composer.lock composer-setup.php \
&& rm -rf atom.zip composer.json composer.lock composer-setup.php \
&& /opt/bin/atom --help \
&& which astgen \
&& which phpastgen \
&& microdnf clean all

ENTRYPOINT ["/opt/bin/atom"]

0 comments on commit 18865b5

Please sign in to comment.