# Use an official Python runtime as a parent image
FROM alpine
# Define environment variable
ENV NAME DockerWorkspace
ENV DOCKERWORKSPACE $NAME
ENV USERNAME freemiumUser
ENV WORKDIR /home/$USERNAME/$NAME
ENV PATH .:/home/$USERNAME/scripts:/root/scripts:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

# Set the working directory to /app
WORKDIR $WORKDIR

# Copy the current directory contents into the container at /app
COPY . /home/$USERNAME/$NAME
#RUN chmod +x /home/$USERNAME/$NAME/install.eamd.sh 
RUN export PATH=.:$PATH
RUN sh /home/$USERNAME/$NAME/initMinimalLinux.sh .

# Make port 80 available to the world outside this container
EXPOSE 80


# Run app.py when the container launches
#CMD ["python", "app.py"]
CMD ["bash"]