Skip to content

Instantly share code, notes, and snippets.

View scokmen's full-sized avatar
:octocat:
Berlin

Soner Çökmen scokmen

:octocat:
Berlin
View GitHub Profile
FROM node:12-alpine AS BUILD_IMAGE
# couchbase sdk requirements
RUN apk update && apk add yarn curl bash python g++ make && rm -rf /var/cache/apk/*
# install node-prune (https://github.com/tj/node-prune)
RUN curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin
WORKDIR /usr/src/app
FROM node:12-alpine AS BUILD_IMAGE
# couchbase sdk requirements
RUN apk update && apk add yarn curl bash python g++ make && rm -rf /var/cache/apk/*
# install node-prune (https://github.com/tj/node-prune)
RUN curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin
WORKDIR /usr/src/app
FROM node:12-alpine AS BUILD_IMAGE
# couchbase sdk requirements
RUN apk update && apk add python make g++ && rm -rf /var/cache/apk/*
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
FROM node:12-alpine AS BUILD_IMAGE
# couchbase sdk requirements
RUN apk update && apk add python make g++ && rm -rf /var/cache/apk/*
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
# install dependencies
# couchbase sdk requirements
RUN apk update && apk add python make g++ && rm -rf /var/cache/apk/*
FROM node:12-alpine
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
# install dependencies
RUN yarn --frozen-lockfile
COPY . .
@scokmen
scokmen / Dockerfile
Last active January 7, 2020 15:56
Initial Dockerfile
FROM node:12
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
# install dependencies
RUN yarn --frozen-lockfile
COPY . .
@scokmen
scokmen / HttpStatusCode.ts
Created April 25, 2017 11:10
Typescript Http Status Codes Enum
"use strict";
/**
* Hypertext Transfer Protocol (HTTP) response status codes.
* @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}
*/
enum HttpStatusCode {
/**
* The server has received the request headers and the client should proceed to send the request body