Skip to content

Commit d0a83a1

Browse files
committed
Add Dockerfile for containerized data generation
1 parent 4e16e6a commit d0a83a1

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM ruby:3.4-slim
2+
3+
RUN apt-get update && \
4+
apt-get install -y --no-install-recommends build-essential git pkg-config && \
5+
rm -rf /var/lib/apt/lists/*
6+
7+
WORKDIR /app
8+
9+
COPY Gemfile Gemfile.lock free_zipcode_data.gemspec .ruby-version ./
10+
COPY lib/free_zipcode_data/version.rb lib/free_zipcode_data/version.rb
11+
RUN git init && git add . && \
12+
bundle config set --local without development && \
13+
bundle install
14+
15+
COPY . .
16+
RUN git add .
17+
18+
ENV COUNTRY=""
19+
VOLUME /output
20+
21+
ENTRYPOINT ["./docker-entrypoint.sh"]

0 commit comments

Comments
 (0)