Skip to content

Instantly share code, notes, and snippets.

@psychemedia

psychemedia/Dockerfile

Last active Jan 25, 2021
Embed
What would you like to do?
Robotlab demo - wine in guacamole container
FROM hurricane/dockergui:x11rdp1.3
#Use an updated build
#FROM psychemedia/dockergui
#########################################
## ENVIRONMENTAL CONFIG ##
#########################################
# Set environment variables
# User/Group Id gui app will be executed as default are 99 and 100
ENV USER_ID=99
ENV GROUP_ID=100
# Gui App Name default is "GUI_APPLICATION"
ENV APP_NAME="Robotlab"
# Default resolution, change if you like
ENV WIDTH=1280
ENV HEIGHT=720
# Use baseimage-docker's init system
CMD ["/sbin/my_init"]
#########################################
## REPOSITORIES AND DEPENDENCIES ##
#########################################
#echo 'deb http://archive.ubuntu.com/ubuntu trusty main universe restricted' > #/etc/apt/sources.list
#echo 'deb http://archive.ubuntu.com/ubuntu trusty-updates main universe restricted' >> #/etc/apt/sources.list
# Install packages needed for app
#########################################
## GUI APP INSTALL ##
#########################################
# Install steps for X app
RUN dpkg --add-architecture i386
RUN apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
RUN wget https://dl.winehq.org/wine-builds/Release.key && sudo apt-key add Release.key
RUN apt update && apt install -y winehq-stable
# Copy X app start script to right location
COPY startapp.sh /startapp.sh
COPY Apps/ /opt/Apps
#########################################
## EXPORTS AND VOLUMES ##
#########################################
# Place whater volumes and ports you want exposed here:
#Trying to expose /nobody and running with -v "${PWD}/files":/nobody doesn't seem to work?
RUN mkdir -p /share
VOLUME /share
EXPOSE 3389
export WINEDLLOVERRIDES="mscoree,mshtml="
DISPLAY=:1 wine /opt/Apps/RobotLab/RobotLab.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment