Skip to content

Instantly share code, notes, and snippets.

@clairvy
Created March 26, 2019 09:58
Show Gist options
  • Save clairvy/982ab1ce02c364e798cc55f2e0699714 to your computer and use it in GitHub Desktop.
Save clairvy/982ab1ce02c364e798cc55f2e0699714 to your computer and use it in GitHub Desktop.
version: '3'
services:
app:
build: .
volumes:
- .:/workspace
working_dir: /workspace
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