This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 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,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"] |
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,2 @@ | ||
|
||
参考:[[Docker][Ubuntu]WPS运行](https://container-automation.readthedocs.io/zh_CN/latest/docker/gui/[Docker][Ubuntu]WPS运行.html) |