forked from swiftlang/swift-org-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 653 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2022 Apple Inc. and the Swift.org project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See LICENSE.txt for license information
# See CONTRIBUTORS.txt for the list of Swift.org project authors
#
# SPDX-License-Identifier: Apache-2.0
FROM ruby:3.3
LABEL PURPOSE="This image is configured to build and run swift website"
RUN mkdir -p /src
WORKDIR /src
EXPOSE 4000
ENV LC_ALL: C.UTF-8
ENV LANG: en_US.UTF-8
ENV LANGUAGE: en_US.UTF-8
RUN gem install bundler -v '~> 2.5.5'
COPY Gemfile Gemfile.lock /src/
RUN bundle install -j $(nproc)