projects
/
website
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bbaa7c
)
Added dockerfile
author
Lukas Krickl
<lukas@krickl.dev>
Mon, 8 Nov 2021 05:59:44 +0000
(06:59 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Mon, 8 Nov 2021 05:59:44 +0000
(06:59 +0100)
Dockerfile
patch
|
blob
|
history
diff --git
a/Dockerfile
b/Dockerfile
index 37cca80ee9e0c593a2c8acb82b6bc58e6b33d3c2..ca54b51d37f4dd8565a79abd404c864014303fb7 100644
(file)
--- a/
Dockerfile
+++ b/
Dockerfile
@@
-8,12
+8,13
@@
RUN apt update -y && apt upgrade -y
RUN apt install -y git
COPY . /usr/src/website
-RUN npm install
-RUN npm run build
+RUN npm install --global yarn
+RUN yarn install
+RUN yarn run build
EXPOSE 3000
ENV NUXT_HOST=0.0.0.0
ENV NUXT_PORT=3000
-CMD ["
npm
", "start"]
+CMD ["
yarn", "run
", "start"]