-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c40b528
commit 57de65d
Showing
134 changed files
with
3,574 additions
and
7,175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,40 @@ | ||
FROM ubuntu:23.04 | ||
FROM node:20.16.0-alpine | ||
RUN npm install -g npm@10.8.2 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y git | ||
WORKDIR /app | ||
COPY ./package*.json ./ | ||
RUN npm install | ||
COPY . . | ||
RUN npm run build | ||
|
||
ENV NODE_VERSION=18.13.0 | ||
RUN apt install -y curl iproute2 | ||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash | ||
ENV NVM_DIR=/root/.nvm | ||
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION} | ||
RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION} | ||
RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION} | ||
EXPOSE 3000 | ||
CMD ["npm", "run", "start"] | ||
|
||
COPY . /home/node/MyFab_Front/ | ||
WORKDIR /home/node/MyFab_Front/ | ||
ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" | ||
#FROM ubuntu:23.04 | ||
|
||
RUN npm install | ||
RUN npm run build | ||
#RUN apt-get update | ||
#RUN apt-get install -y git sudo | ||
#RUN apt install -y curl iproute2 | ||
|
||
#USER ubuntu | ||
#ENV NODE_VERSION=20.16.0 | ||
#RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash | ||
#ENV NVM_DIR=/home/ubuntu/.nvm | ||
#RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION} | ||
#RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION} | ||
#RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION} | ||
#ENV PATH="/home/ubuntu/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" | ||
#RUN npm install -g npm@10.8.2 | ||
#RUN npm install -g yarn | ||
|
||
#USER root | ||
#COPY . /home/ubuntu/MyFab_Front/ | ||
#RUN chown -R ubuntu /home/ubuntu/MyFab_Front/ | ||
#RUN chgrp -R ubuntu /home/ubuntu/MyFab_Front/ | ||
#USER ubuntu | ||
#WORKDIR /home/ubuntu/MyFab_Front/ | ||
|
||
#RUN npm install | ||
#RUN npm run build | ||
|
||
CMD ["npm", "run", "start"] | ||
#CMD ["npm", "run", "start"] |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.