-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #855 from openzim/ISNIT0/docker-build
🐳 fixing docker build to use committed code
- Loading branch information
Showing
3 changed files
with
29 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules | ||
cac | ||
out | ||
test | ||
.vscode | ||
.github |
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,15 +1,23 @@ | ||
FROM node:10 | ||
|
||
# Basics | ||
RUN apt update && apt install -y --no-install-recommends make g++ curl git | ||
# Install dependences | ||
RUN apt update && apt install -y --no-install-recommends make g++ curl git imagemagick | ||
|
||
# Install mwoffliner | ||
RUN apt install -y --no-install-recommends imagemagick | ||
WORKDIR /tmp/mwoffliner | ||
COPY package*.json ./ | ||
COPY src src | ||
COPY lib lib | ||
COPY res res | ||
COPY translation translation | ||
COPY index.js . | ||
COPY build.sh . | ||
RUN npm --global config set user root | ||
RUN npm install -g mwoffliner@1.9.3 | ||
RUN apt remove -y make g++ | ||
RUN npm i | ||
RUN npm i -g . | ||
|
||
# Boot commands | ||
# Configure launch environment | ||
WORKDIR / | ||
RUN mv /root/.bashrc /root/.old-bashrc | ||
COPY .custom-bashrc /root/.bashrc | ||
COPY docker/.custom-bashrc /root/.bashrc | ||
CMD mwoffliner |
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