aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-09 17:19:55 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-09-09 17:19:55 +0530
commit04795a2d7ecf5fea498fc7be7d3621a24108ac56 (patch)
tree7317ed8fdbb12eebce5e23e0efae32350f778589 /Dockerfile
parentRevert "fix: U2F devices not recognised in snapcraft image (#1892)" (diff)
downloadferdium-app-04795a2d7ecf5fea498fc7be7d3621a24108ac56.tar.gz
ferdium-app-04795a2d7ecf5fea498fc7be7d3621a24108ac56.tar.zst
ferdium-app-04795a2d7ecf5fea498fc7be7d3621a24108ac56.zip
chore: use 'pnpm' for the Docker builds of the 'recipes'. [skip ci]
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile19
1 files changed, 9 insertions, 10 deletions
diff --git a/Dockerfile b/Dockerfile
index e46da8ac9..d3589005b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,8 +2,6 @@
2 2
3FROM docker.io/library/node:14.17.6-buster as builder 3FROM docker.io/library/node:14.17.6-buster as builder
4 4
5# TODO: Need to setup a non-root user for security purposes
6
7ENV PATH="/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/lib:/usr/include:/usr/share" 5ENV PATH="/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/lib:/usr/include:/usr/share"
8 6
9ARG DEBIAN_FRONTEND=noninteractive 7ARG DEBIAN_FRONTEND=noninteractive
@@ -18,7 +16,8 @@ RUN apt-get update -y \
18 16
19WORKDIR /usr/src/ferdi 17WORKDIR /usr/src/ferdi
20 18
21RUN npm i -g node-gyp@8.1.0 \ 19RUN npm i -g pnpm@6.14.7 \
20 && npm i -g node-gyp@8.1.0 \
22 && npm i -g lerna@4.0.0 21 && npm i -g lerna@4.0.0
23 22
24COPY . . 23COPY . .
@@ -26,18 +25,18 @@ COPY . .
26# Note: Ideally this needs to be done before the COPY step - BUT moving this here resolves the issue with `preval-build-info-cli` not being found 25# Note: Ideally this needs to be done before the COPY step - BUT moving this here resolves the issue with `preval-build-info-cli` not being found
27RUN npx lerna bootstrap 26RUN npx lerna bootstrap
28 27
29RUN cd recipes \ 28WORKDIR /usr/src/ferdi/recipes
30 && npm i \ 29
31 && npm run package \ 30RUN pnpm i \
32 && cd .. 31 && pnpm run package
32
33WORKDIR /usr/src/ferdi
33 34
34RUN npm run build 35RUN npm run build
35 36
36# -------------------------------------------------------------------------------------------- 37# --------------------------------------------------------------------------------------------
37 38
38FROM docker.io/library/busybox 39FROM docker.io/library/busybox:latest
39
40# TODO: Need to setup a non-root user for security purposes
41 40
42WORKDIR /ferdi 41WORKDIR /ferdi
43 42