Skip to content

Commit

Permalink
update docker, switch to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
DakshChan committed Jan 19, 2024
1 parent 750d05b commit 01463d0
Show file tree
Hide file tree
Showing 4 changed files with 27,278 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.nuxt
node_modules
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ typings/

# Optional npm cache directory
.npm
package-lock.json

# Optional eslint cache
.eslintcache
Expand Down
14 changes: 6 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
FROM node:lts
ENV HOST 0.0.0.0

# Create app directory
RUN mkdir -p /usr/cssc-website

# Bundle app source
COPY . ~/cssc-website
WORKDIR ~/cssc-website

RUN yarn
RUN yarn build
COPY package.json package-lock.json ./
RUN npm ci

COPY . .
RUN npm run build

CMD [ "yarn", "start" ]
CMD [ "npm", "start" ]
Loading

0 comments on commit 01463d0

Please sign in to comment.