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
FROM path/to/your/registry/swift-image:4.2.4 | |
WORKDIR /app | |
RUN apt-get update && \ | |
apt-get -y install libxml2 libbsd0 tzdata libicu55 libcurl3 libatomic1 && \ | |
rm -rf /var/lib/apt/lists/* | |
COPY .build/debug/Run ./Run | |
EXPOSE 8080 | |
ENTRYPOINT ["./Run", "serve"] |
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
#!/usr/bin/env bash | |
# used to install offical chrome and selenium on Ubuntu 16.04.1 LTS, 18.04, 20.04.1 LTS desktop, Jan 2021 | |
# also tested and works on Elem OS 5.1 :) | |
# | |
# make sure script is run as root or sudo | |
if [[ $(whoami) != "root" ]] ; then | |
echo ; echo "This script, $0, SHOULD be run as ROOT. " ; echo | |
exit 1 | |
fi | |
# |