Haris Razis
4 years ago
7 changed files with 1909 additions and 32 deletions
@ -1,5 +1,5 @@ |
|||
<component name="ProjectRunConfigurationManager"> |
|||
<configuration default="false" name="Server_compose" type="docker-deploy" factoryName="docker-compose.yml" server-name="Docker"> |
|||
<configuration default="false" name="docker compose" type="docker-deploy" factoryName="docker-compose.yml" server-name="Docker"> |
|||
<deployment type="docker-compose.yml"> |
|||
<settings> |
|||
<option name="removeVolumesOnComposeDown" value="true" /> |
@ -1,11 +1,11 @@ |
|||
FROM node:latest |
|||
|
|||
WORKDIR /usr/src/app |
|||
WORKDIR /usr/src/app/server |
|||
|
|||
COPY package*.json ./ |
|||
|
|||
RUN npm install |
|||
COPY . . |
|||
|
|||
EXPOSE 8000 |
|||
CMD [ "npm", "start" ] |
|||
|
|||
CMD [ "npm", "run", "dev" ] |
File diff suppressed because it is too large
@ -1,16 +1,11 @@ |
|||
FROM node:latest |
|||
|
|||
RUN npm install -g http-server |
|||
|
|||
WORKDIR /app |
|||
WORKDIR /usr/src/app/web |
|||
|
|||
COPY package*.json ./ |
|||
|
|||
RUN npm install |
|||
|
|||
COPY . . |
|||
|
|||
RUN npm run build |
|||
|
|||
EXPOSE 8080 |
|||
CMD [ "http-server", "dist" ] |
|||
|
|||
CMD ["npm", "run", "serve"] |
@ -0,0 +1,16 @@ |
|||
FROM node:latest |
|||
|
|||
RUN npm install -g http-server |
|||
|
|||
WORKDIR /app |
|||
|
|||
COPY package*.json ./ |
|||
|
|||
RUN npm install |
|||
|
|||
COPY . . |
|||
|
|||
RUN npm run build |
|||
|
|||
EXPOSE 8080 |
|||
CMD [ "http-server", "dist" ] |
Loading…
Reference in new issue