Created
March 26, 2019 09:58
-
-
Save clairvy/982ab1ce02c364e798cc55f2e0699714 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
version: '3' | |
services: | |
app: | |
build: . | |
volumes: | |
- .:/workspace | |
working_dir: /workspace |
This file contains hidden or 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 ubuntu:18.04 | |
# copied from https://github.com/chef/chef-dk/blob/master/Dockerfile | |
ARG PACKAGE=chef-workstation | |
ARG CHANNEL=stable | |
ARG VERSION=0.2.48 | |
RUN apt-get update && \ | |
apt-get install -y wget && \ | |
wget --content-disposition "http://packages.chef.io/files/${CHANNEL}/${PACKAGE}/${VERSION}/ubuntu/18.04/${PACKAGE}_${VERSION}-1_amd64.deb" -O /tmp/${PACKAGE}.deb && \ | |
dpkg -i /tmp/${PACKAGE}.deb && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/log/*log /var/log/apt/* /var/lib/dpkg/*-old /var/cache/debconf/*-old | |
CMD ["/bin/bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment