Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
feat(docker): linux wps docker安装
Browse files Browse the repository at this point in the history
  • Loading branch information
zjZSTU committed Sep 27, 2019
1 parent c5c1aca commit b4fe5ff
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
34 changes: 34 additions & 0 deletions dockerfiles/wps/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# $ docker build -t zjzstu/wps:latest .
# $ docker run -d -v /etc/localtime:/etc/localtime:ro \
# -v /tmp/.X11-unix:/tmp/.X11-unix \
# -e DISPLAY=unix$DISPLAY \
# -v $HOME/slides:/root/slides \
# -e GDK_SCALE \
# -e GDK_DPI_SCALE \
# --name wps \
# wps

FROM ubuntu:18.04
LABEL maintainer "zhujian <zjzstu@github.com>"

RUN apt-get update && apt-get install -f
RUN apt-get install -y libfreetype6 libcups2 libglib2.0-0 libglu1-mesa libsm6 libxrender1 libfontconfig1 libxext6 libxcb1
RUN apt-get install -y xdg-utils unzip

WORKDIR /app
COPY wps-office_11.1.0.8865_amd64.deb wps-office-fonts_1.0_all.deb wps_symbol_fonts.zip /app/
RUN unzip wps_symbol_fonts.zip -d /usr/share/fonts/ && \
cd /usr/share/fonts/ && \
chmod 755 *.ttf && \
chmod 755 *.TTF
RUN dpkg -i wps-office_11.1.0.8865_amd64.deb && dpkg -i wps-office-fonts_1.0_all.deb

RUN rm wps-office_11.1.0.8865_amd64.deb wps-office-fonts_1.0_all.deb wps_symbol_fonts.zip
RUN apt-get autoremove -y --purge && apt-get autoclean -y && apt-get clean -y && \
find /var/lib/apt/lists -type f -delete && \
find /var/cache -type f -delete && \
find /var/log -type f -delete && \
find /usr/share/doc -type f -delete && \
find /usr/share/man -type f -delete

ENTRYPOINT ["/usr/bin/wps"]
2 changes: 2 additions & 0 deletions dockerfiles/wps/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

参考:[[Docker][Ubuntu]WPS运行](https://container-automation.readthedocs.io/zh_CN/latest/docker/gui/[Docker][Ubuntu]WPS运行.html)

0 comments on commit b4fe5ff

Please sign in to comment.