Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Arielgordon123 committed Jun 14, 2021
1 parent c035370 commit f3aae28
Show file tree
Hide file tree
Showing 15 changed files with 12,520 additions and 2,372 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
3 changes: 3 additions & 0 deletions .terraform/plugins/linux_amd64/lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"upcloud": "abfdf6e47a3970abf78198dc2e497f87381a89b8b4a5b9a8d5a4529e73177dbd"
}
1 change: 1 addition & 0 deletions .terraform/plugins/selections.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
49 changes: 49 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# FROM node:13

# WORKDIR /usr/src/pharmacy

# COPY package*.json ./


# COPY . .
# RUN npm install && npm run build

# EXPOSE 3000

# CMD [ "npm", "start" ]

#
# ---- Base Node ----
FROM ubuntu AS base

ARG DEBIAN_FRONTEND=noninteractive
# install node
RUN apt update && apt install nodejs npm -y
# set working directory
WORKDIR /usr/src/pharmacy

# copy project file
COPY package.json .

#
# ---- Dependencies ----
FROM base AS dependencies
# install node packages
RUN npm set progress=false && npm config set depth 0
RUN npm install --only=production
# copy production node_modules aside
RUN cp -R node_modules prod_node_modules
# install ALL node_modules, including 'devDependencies'
RUN npm install

#
# ---- Release ----
FROM base AS release
# copy production node_modules
COPY --from=dependencies /usr/src/pharmacy/prod_node_modules ./node_modules
# copy app sources
COPY . .
# expose port and define CMD
EXPOSE 3000

CMD [ "npm", "start" ]
8 changes: 4 additions & 4 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</v-btn>
</v-app-bar>
</v-card>
<v-content>
<v-main>
<v-container>
<nuxt />
<client-only>
Expand All @@ -72,11 +72,11 @@
/>
</client-only>
</v-container>
</v-content>
</v-main>

<v-footer :fixed="fixed" app>
<div style="width: -webkit-fill-available; margin: 0;">
<p class="text-center">Ariel Gordon Neria Cohen Liraz Yaacov &copy; 2019</p>
<div style="width: -webkit-fill-available; ">
<p class="text-center" style="margin: 0;">Ariel Gordon Neria Cohen Liraz Yaacov &copy; 2019</p>
</div>

</v-footer>
Expand Down
Empty file modified middleware/authenticate.js
100755 → 100644
Empty file.
5 changes: 5 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ const colors = require("vuetify/es5/util/colors").default;

module.exports = {
mode: "universal",
server: {
port: 3000, // default: 3000
host: '0.0.0.0', // default: localhost,
timing: false
},
/*
** Headers of the page
*/
Expand Down
Loading

0 comments on commit f3aae28

Please sign in to comment.