Skip to content

Commit

Permalink
test docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ejahnGithub committed May 2, 2024
1 parent 0467170 commit 5c00ac0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
FROM ubuntu

# build index.js
COPY index.js ./
COPY src/index.js ./
COPY package.json ./

# install nodejs
RUN apt-get update
RUN apt-get install -y nodejs
RUN apt-get install -y npm


# install nodejs packages
RUN npm install

# run index.js
CMD ["node", "/index.js"]
CMD ["node", "index.js"]

0 comments on commit 5c00ac0

Please sign in to comment.