Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile for Windows and Linux builds #1765

Merged
merged 2 commits into from
Jul 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .deploy/desktop/Dockerfile.linux
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM node:buster-slim as linux

RUN mkdir -p /opt/src && chown -R node:node /opt/src && \
apt update && apt install -y --no-install-recommends \
curl gnupg git libappindicator3-1 ca-certificates binutils \
icnsutils graphicsmagick

WORKDIR /opt/src

COPY --chown=node:node apps/desktop/package.json ./apps/desktop/
COPY --chown=node:node apps/api/package.json ./apps/api/
COPY --chown=node:node package.json yarn.lock ./

USER node:node

RUN yarn install

COPY --chown=node:node . .

RUN yarn bootstrap

RUN yarn build:desktop:linux

#=========================================================================#

FROM debian:buster-slim

WORKDIR /opt/artifacts

COPY --from=linux /opt/src/dist/apps/desktop-packages ./linux/

23 changes: 23 additions & 0 deletions .deploy/desktop/Dockerfile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM electronuserland/builder:wine as windows

WORKDIR /opt/src

COPY apps/desktop/package.json ./apps/desktop/
COPY apps/api/package.json ./apps/api/
COPY package.json yarn.lock ./

RUN yarn install

COPY . .

RUN yarn bootstrap

RUN yarn build:desktop:windows

#=========================================================================#

FROM debian:buster-slim

WORKDIR /opt/artifacts

COPY --from=windows /opt/src/dist/apps/desktop-packages ./windows/