Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
derpbyte authored Apr 26, 2023
1 parent 20d09ab commit 15eb0b4
Show file tree
Hide file tree
Showing 3 changed files with 1,983 additions and 74 deletions.
22 changes: 14 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
FROM node:18
WORKDIR ./
COPY . ./
COPY package*.json /app/
RUN npm install -g npm@9.6.5
RUN npm start
EXPOSE 8080
CMD ["npm", "start"]
# syntax=docker/dockerfile:1

FROM node:19-bullseye
ENV NODE_ENV=production

WORKDIR /app

COPY ["package.json", "package-lock.json*", "./"]

RUN npm install

COPY . .

CMD [ "node", "index.js" ]
Loading

0 comments on commit 15eb0b4

Please sign in to comment.