Skip to content

Instantly share code, notes, and snippets.

FROM ruby:2.3.3
ENV LANG C.UTF-8
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash -
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
RUN npm install -g typescript
ENV APP /app
RUN mkdir $APP
WORKDIR $APP
ADD Gemfile Gemfile
# frozen_string_literal: true
require 'sinatra'
require 'sinatra/reloader'
require 'sinatra/json'
post '/images' do
image = {name: 'i_like_dog_very_much', url: 'https://example.com/image.png'}
# p request