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 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 |
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
# 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 |
OlderNewer